Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps V3: Disable Canvas Markers

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?

like image 764
Kenzic Avatar asked Mar 11 '11 20:03

Kenzic


People also ask

How do I get rid of markers on Google Maps?

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.

How do I get rid of blue markers on Google Maps?

If you want to remove the pin from Google Maps, simply right click on it and select "Remove this destination." Poof, it's gone.

How do I hide markers on Google Maps API?

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

How do you change markers on Google Maps?

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.


1 Answers

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 
})
like image 96
normanrz Avatar answered Sep 20 '22 23:09

normanrz