admin管理员组文章数量:1320661
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.
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.
Share Improve this question asked Feb 3, 2013 at 10:41 holyredbeardholyredbeard 21.3k32 gold badges111 silver badges174 bronze badges 1- 1 Do you actually mean markers, don't you mean POIs? because for markers it is a trivial question (wonder why you asked..), while for POIs, it is much more plicated and interesting. – Tomas Commented Feb 3, 2013 at 10:58
1 Answer
Reset to default 7Apparently there are two possible ways to achieve this
by using the property setClickable(flag:boolean); see http://code.google./apis/maps/documentation/v3/reference.html#Marker
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.
本文标签: javascriptDisable clicking on markersStack Overflow
版权声明:本文标题:javascript - Disable clicking on markers - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742064380a2418744.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论