Sunday, May 31, 2009

[Google Maps] Marker Clusterer

Eine interessante Lösung viele Marker darzustellen:
http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/examples/speed_test_example.html

How it works:

* The MarkerClusterer will group markers into clusters according to
* their distance from a cluster's center. When a marker is added,
* the marker cluster will find a position in all the clusters, and
* if it fails to find one, it will create a new cluster with the marker.
* The number of markers in a cluster will be displayed
* on the cluster marker. When the map viewport changes,
* MarkerClusterer will destroy the clusters in the viewport
* and regroup them into new clusters.

No comments:

Post a Comment