Google Maps API点击标记(不是自定义) [英] Google Maps API Click Point Marker (not custom)
问题描述
当我呈现Google地图对象时,我会看到一堆带有旁边地名的标记。他们大多数是方形点,但有时他们有一个酒吧的玻璃杯或星巴克的一杯咖啡。
这些点叫做什么?
如何检测它们被点击的时间?如果单击这些点中的一个,Map对象上的'click'侦听器将不会运行。
它们是点兴趣(poi)。
你无法检测到它们被点击的时间,但你可以设计地图而不显示它们。
$ b
请参阅
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.
这篇关于Google Maps API点击标记(不是自定义)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!