[英]How do you listen for clicks on POI using Google Maps API?
By default a Google Map embedded using the API (V3) has all sorts of points of interest scattered across it, just like on maps.google.com. 默认情况下,使用API(V3)嵌入的Google地图会分散各种各样的兴趣点,就像在maps.google.com上一样。 These are mostly for parks, businesses, schools etc. Like a Marker you can click them to reveal an info window, but unlike a marker I don't have a reference to them as I didn't create them myself.
这些主要用于公园,企业,学校等。像标记一样,你可以点击它们来显示一个信息窗口,但不像标记我没有参考它们,因为我没有自己创建它们。 That being the case, is there a way to listen for click events on these elements?
既然如此,有没有办法监听这些元素上的点击事件?
After looking into this some more and searching through the entire Maps API reference it seems this is indeed unsupported, at least in the current API version (3.8) 在对此进行了更多研究并搜索完整的Maps API参考后 ,似乎确实不支持这种情况,至少在当前的API版本中是这样(3.8)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.