Can I remove just the popup bubbles of POI's in Google Maps API v3?

后端 未结 7 1386
走了就别回头了
走了就别回头了 2020-12-01 01:09

So I\'m working on a new web app that has a big focus on maps. Using Google Maps API v3 and really happy with it but noticed that the points of interest (POI\'s) have autom

相关标签:
7条回答
  • 2020-12-01 01:41

    Starting from version 3.24 the Maps JavaScript API has a property clickableIcons in MapOptions object:

    https://developers.google.com/maps/documentation/javascript/3.exp/reference#MapOptions

    You can use this property to turn off clickable icons on maps by setting the clickableIcons property to false. Also exists a setClickableIcons() method.

    Please look at this example: http://jsbin.com/liyamecoqa/edit?html,output

    0 讨论(0)
提交回复
热议问题