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?
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.
Red indicates a vehicle is OFF.
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
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With