简体   繁体   English

关闭Google地图本地点

[英]Turn off Google Maps local points

I currently have a webapp which draws points of interest using the maps api, however I have noticed a small annoyance which I would like to turn off if possible. 我目前有一个使用maps api绘制兴趣点的webapp,但是我注意到一个小烦恼,如果可能的话我想关闭它。

Right now when the google map is loaded, it will show points of interest and local business (city hall, pizza hut, etc...). 现在,当加载谷歌地图时,它将显示兴趣点和当地商业(市政厅,披萨小屋等......)。 I don't mind the wording showing up labelling them, but I do not want these points clickable, as if often happens that people using touchscreens hit these points accidentally 我不介意显示标记它们的措辞,但我不希望这些点可点击,好像经常发生使用触摸屏的人意外地触及这些点

Is there a way to turn this feature off? 有没有办法关闭此功能?

You can turn them off using map Styling . 您可以使用地图样式关闭它们。 The specific style would be 具体的风格是

[
  {
    featureType: "poi",
    stylers: [
      { visibility: "off" }
    ]
  }
]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM