MarkerClusterer完成后的火灾事件 [英] Fire event after MarkerClusterer has finished

查看:165
本文介绍了MarkerClusterer完成后的火灾事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我有一个应用程序,其中包含具有(数百)个标记的地图。我使用Google提供的markerclusterer.js来聚集我的标记,并使整个事情更容易看。我正在使用API​​ V3。



我都很好。但是我想要做的是当markerclusterer完成聚集所有标记时执行一些操作。我试图自己做,但没有看。



有什么建议吗? (我假设这会比我想象的更容易,而我的大脑只是被炒到)

我只是想知道事情。这是我如何做到的:

  google.maps.event.addListener(markerClusterer,'clusteringend',myFunction); 


So I have an application that contains a map with (several hundreds) of markers. I use the markerclusterer.js supplied by Google to cluster my markers and make the whole thing easier to look at. I'm using API V3.

I'm fine with all of that. But what I would like to do is perform some action when the markerclusterer has finished clustering all the markers. I've tried to do it myself but with no look.

Any suggestions? (I'm assuming this will be easier than I think and my brain is just fried)

解决方案

I was just wondering the same thing. This is how I did it:

google.maps.event.addListener(markerClusterer, 'clusteringend', myFunction);

这篇关于MarkerClusterer完成后的火灾事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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