On 3/2/11 Google released version 3.4 of Google Maps. The new version uses canvas to create the markers in browsers that support it. I would like to disable this feature. Is that possible?
You can delete the markers by removing them from the map and then setting the array's length to 0 , which removes all references to the markers.
If you want to remove the pin from Google Maps, simply right click on it and select "Remove this destination." Poof, it's gone.
Once you are able to detect the marker click event you need to "hide" or remove the marker from the map. The standard way for doing this with google maps is to do this: this. setMap(null);
Click or tap on the Edit option to open a small box with different sections labeled Title and Description as well as a marker icon. To edit the marker color, click or tap on the marker icon. When you do that, you can change both the color of the marker and its style.
Check out the optimized
property of google.maps.MarkerOptions
.
http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerOptions
marker = new google.maps.Marker({
icon: getIcon(),
zIndex: 210,
map: map,
optimized: false,
title: name
})
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