问题描述
我目前有一个使用maps api绘制兴趣点的webapp,但是我注意到一个小烦恼,如果可能的话我想关闭。
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?
推荐答案
您可以使用。具体的风格是
You can turn them off using map Styling. The specific style would be
[
{
featureType: "poi",
stylers: [
{ visibility: "off" }
]
}
]
这篇关于关闭Google地图本地点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!