如何从地图上的注册地点禁用infowindow? [英] How to disable infowindow from registered places from map?
问题描述
您好,我对Google地图很陌生。我用gmaps jquery插件来显示地图。因为我有一些位置的自己的标记和多段线,并在点击这些标记时显示infowindow。但是像crissy字段这样的一些区域我没有定义任何标记或折线,但是当点击它时,默认情况下会获得infowindow。如何删除infowindow请求帮助。
Hi am new to google maps. I have used gmaps jquery plugin for displaying map. In that i have my own markers and polylines for some locations,and displaying the infowindow when clicking on those markers. But some areas like crissy field i didn't define any marker or polyline but when clicking on it am getting infowindow by default. How to remove that infowindow pls help.
推荐答案
我认为阻止这些infowindows开放的唯一方法是关闭POI使用风格地图,如下所示:
I think the only way to prevent those infowindows from opening is to turn off the POIs using styled maps, something like:
[
{
"featureType": "poi",
"stylers": [
{ "visibility": "off" }
]
}
]
这篇关于如何从地图上的注册地点禁用infowindow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!