Turn off Google Maps local points

大兔子大兔子 提交于 2019-12-22 04:53:33

问题


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.

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?


回答1:


You can turn them off using map Styling. The specific style would be

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


来源:https://stackoverflow.com/questions/9179713/turn-off-google-maps-local-points

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!