where I can find the little red dot image used in

2019-01-21 07:05发布

I am looking for the red dots showing here I can find find plenty of push pins and shadows in various place. But cannot find this little dot.... Could someone help me?

5条回答
唯我独甜
2楼-- · 2019-01-21 07:30

you dont need any image at all.

var circle = {
    path: google.maps.SymbolPath.CIRCLE,
    fillColor: 'red',
    fillOpacity: .4,
    scale: 4.5,
    strokeColor: 'white',
    strokeWeight: 1
};

// stack exchange headquarters
var location = {lat: 40.7087507876002, lng: -74.00675015738136};

var map = new google.maps.Map(document.getElementById('map'), {
    center: location,
    zoom: 13,
});

var marker = new google.maps.Marker({
    position: location,
    map: map,
    icon: circle, // set the icon here
});
查看更多
Fickle 薄情
3楼-- · 2019-01-21 07:41

The dots come from this image : https://maps.gstatic.com/mapfiles/mv/imgs8.png (but they are easier to take from https://maps.gstatic.com/mapfiles/mv/imgs2.png )

As far as copyright goes you should read the terms of services (http://maps.google.com/help/terms_maps.html) if you plan on using them.

查看更多
Luminary・发光体
4楼-- · 2019-01-21 07:48

Afaik there is no static link to the little FusionTables red dot...

Also see https://groups.google.com/group/fusion-tables-users-group/browse_thread/thread/670a2af718afc97b?pli=1

Here are two links to lists of other static links https://sites.google.com/site/gmapicons/home/ and https://sites.google.com/site/gmapsdevelopment/

Alternative is to use this one http://maps.gstatic.com/mapfiles/ridefinder-images/mm_20_red.png

That's what I am doing on my (test) map from Fusion Tables with Markerclusterer

查看更多
家丑人穷心不美
5楼-- · 2019-01-21 07:52

Are you just trying to copy out the style of the markers?

If you are using Chrome just press F12 for developer tools, go to resources, then choose Frames->Maps->Images.

All of the images are shown there along with their locations.

https://maps.gstatic.com/mapfiles/markers2/red_markers_A_J2.png

I believe those are what you are talking about?

If you are talking about the really tiny little red dots, they appear to be part of the map images themselves.

However, there is a little blue dot that looks to be exactly the same, https://maps.gstatic.com/intl/en_us/mapfiles/markers2/measle_blue.png

查看更多
登录 后发表回答