where I can find the little red dot image used in google map?

白昼怎懂夜的黑 提交于 2019-11-28 16:25:44

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

Alex

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
});

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!