关闭 Google 地图本地点

发布于 2025-01-03 16:35:51 字数 170 浏览 1 评论 0原文

我目前有一个网络应用程序,它使用地图 API 绘制兴趣点,但是我注意到一个小烦恼,如果可能的话我想将其关闭。

现在,当谷歌地图加载时,它将显示兴趣点和当地商业(市政厅、必胜客等)。我不介意显示标记它们的措辞,但我不希望这些点可点击,好像使用触摸屏的人经常意外地点击这些点

有没有办法关闭此功能?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

转身以后 2025-01-10 16:35:51

您可以使用地图样式将其关闭。具体的风格是

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

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

[
  {
    featureType: "poi",
    stylers: [
      { visibility: "off" }
    ]
  }
]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文