Google Map Api v3 Clusterer - which markers are groupped?
if i use clustering on my google maps api, how can i get info about which markers are grouped in cluster? is it possible to get?
it's with google map api v3.
thank yo开发者_Python百科u very much in advance!
If you are using the marker clusterer http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/ then you can listen to the 'clusterclick' event listener to the MarkerCluster.
The callback will be passed the cluster that was clicked on and you can call: getCenter, getSize and getMarkers
With that information you should be able to do what you need to
精彩评论