Disable point-of-interest information window using Google Maps API v3

前端 未结 7 800
忘掉有多难
忘掉有多难 2020-12-08 04:43

I have a custom map with an information bubble and custom markers. When I zoom into points of interest such as parks and universities appear and when I click an information

7条回答
  •  抹茶落季
    2020-12-08 04:51

    UPDATE Google Maps JavaScript API V3

    You can set clickableIcons to false in MapOptions. This will keep the POI icons but disable the infowindows just as you want.

    function initialize() {
        var myMapOptions = { clickableIcons: false }
    }
    

    Further details here...

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

提交回复
热议问题