Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 832
Ziyang Zhang Avatar asked Jun 22 '12 19:06

Ziyang Zhang


People also ask

What are the little red dots on Google Maps?

The tiny red dots are actually a layer of image tiles being baked on Google's servers, and then these tiles are added to the map as images (I'm not sure how they're made clickable). Anyway, all this makes sense, because adding that many individual divs to the DOM burns up a lot of CPU.

What does the red pin on maps mean?

Red indicates a vehicle is OFF.


1 Answers

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
});
like image 161
Alex Avatar answered Oct 07 '22 09:10

Alex