如何获得谷歌地图标记上的双击事件 [英] How to get double click event on the google map's marker
本文介绍了如何获得谷歌地图标记上的双击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,我显示具有多个标记的谷歌地图。因为我有单击事件和获取信息窗口。但是我需要的是,当我双击标记时,应该显示具有关于该标记位置的详细信息的其他页面。因为我将针对每个标记具有不同的页面,我怎样才能重定向到相应的页面上双击标记?请帮助我。
In my application, I am displaying google map having multiple markers. In that I have click event and getting info window.But what I need is, when I double click on a marker, some other page having detailed information about that marked place should be displayed.As I will be having different pages for each marker, how can I redirect to the corresponding page on double clicking the marker? Please help me..
推荐答案
您可以使用
You can use
google.maps.event.addListener(marker, "dblclick", function (e) {
log("Double Click");
});
供参考: https://developers.google.com/maps/documentation/javascript/examples/marker-labels
这篇关于如何获得谷歌地图标记上的双击事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文