holyredbeard
holyredbeard

Reputation: 21278

Disable clicking on markers

If one click on a marker, information about the spot (e.g the coordinates) is shown. I want to disable this, so the markers aren't clickable. How can I do that?

I've looked around everywhere but haven't been able to find information about how that can be done.

Upvotes: 2

Views: 8262

Answers (1)

Rachel Gallen
Rachel Gallen

Reputation: 28583

Apparently there are two possible ways to achieve this

  1. by using the property setClickable(flag:boolean); see http://code.google.com/apis/maps/documentation/v3/reference.html#Marker

  2. Remove the listener off the marker. It will look something similar to this google.maps.event.addListener(marker, "click", function(etc)

Reference

Also, if you work on the map in Collaborate mode, at the upper right of the left frame (with the locations listed), there's an Edit button. Click it.

Then go to the location you want to remove in the list on the left and click it to open it's information window on the map (expanding from the droplet-shaped marker). Inside that information box is a "delete" link, and that removes the location.

Upvotes: 7

Related Questions