本文介绍了google.maps.data.addListener有哪些可用的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用:
mydatalayer.addListener('click',function(event){...}) ;
mydatalayer.addListener('addfeature',function(event){...});
没有问题。
m试图使用:
mydatalayer.addListener('dragend',function(event){...});
但事件侦听器未被触发,但该层上选定的多边形在屏幕上正确拖动。 列在 $ b
dragend 目前未列出。
I'm using:
mydatalayer.addListener('click', function(event) { ... });
mydatalayer.addListener('addfeature', function(event) { ... });
without problems.
Now I'm trying to use:
mydatalayer.addListener('dragend', function(event) { ... });
but event listener is not fired, although the selected polygon on that layer is correctly dragged on the screen.
解决方案
The events available on a Google Maps Javascript API v3 Data Layer are listed in the Google Maps Javascript API v3 documentation
As you can see, dragend
is not listed at the current time.
这篇关于google.maps.data.addListener有哪些可用的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!