Google Maps API 点击点标记(非自定义) [英] Google Maps API Click Point Marker (not custom)

查看:34
本文介绍了Google Maps API 点击点标记(非自定义)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我渲染一个谷歌地图对象时,我看到一堆标记",旁边有地名.他们中的大多数都是方点,但有时他们会为酒吧提供酒杯,或者为星巴克提供一杯咖啡.

When I render a google map object, I see a bunch of "markers" with the names of places next to them. Most of them are square dots, but sometimes they have a wine glass for a bar or a cup of coffee for a Starbucks.

这些点叫什么?

我如何检测它们被点击的时间?如果单击这些点之一,则不会运行 Map 对象上的单击"侦听器.

How do I detect when they are clicked? A 'click' listener on the Map object does not run if one of these points are clicked.

推荐答案

它们是兴趣点"(poi).

They are "points of interest" (poi).

您无法检测它们何时被点击,但您可以设置"地图样式以不显示它们.

You can't detect when they are clicked, but you can "style" the map not to display them.

参见 此主题 位于 Google Maps API v3 组中以了解详细信息.

See this thread in the Google Maps API v3 goup for details.

增强请求

这篇关于Google Maps API 点击点标记(非自定义)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆