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

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

问题描述

当我呈现Google地图对象时,我会看到一堆带有旁边地名的标记。他们大多数是方形点,但有时他们有一个酒吧的玻璃杯或星巴克的一杯咖啡。

这些点叫做什么?



如何检测它们被点击的时间?如果单击这些点中的一个,Map对象上的'click'侦听器将不会运行。

它们是点兴趣(poi)。



你无法检测到它们被点击的时间,但你可以设计地图而不显示它们。
$ b

请参阅 + poi#89ae0edaed5b0be0rel =nofollow>此线程详细了解Google Maps API v3 goup。 增强请求


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.

What are these points called?

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.

解决方案

They are "points of interest" (poi).

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

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

Enhancement request

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

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