Closed GoogleCodeExporter closed 9 years ago
There is a property for controlling this behavior. It is called
"averageCenter". If you set it to "true" I think you'll see the behavior you're
looking for.
From the documentation for MarkerClustererPlus:
averageCenter -- Whether the position of a cluster marker should be the average
position of all markers in the cluster. If set to false, the cluster marker is
positioned at the location of the first marker added to the cluster. The
default value is false.
Original comment by garylitt...@gmail.com
on 19 Apr 2012 at 3:18
Ok, great! may I ask exactly where you found this nugget?
Original comment by k...@heldig.org
on 19 Apr 2012 at 4:09
The MarkerClustererPlus Reference is here:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererpl
us/docs/reference.html
"averageCenter" is also supported by MarkerClusterer.
Original comment by garylitt...@gmail.com
on 19 Apr 2012 at 4:16
Hm, weird that i never saw that. Anyways, ill test this out. Thank you for
pointing this out.
Original comment by k...@heldig.org
on 19 Apr 2012 at 4:21
The reason for not making centering of the cluster the default is to improve
performance although you may not notice with only a few markers being managed.
Calculating the average is simply more time consuming than using the position
of the first marker.
Original comment by garylitt...@gmail.com
on 19 Apr 2012 at 4:29
Original comment by garylitt...@gmail.com
on 21 Apr 2012 at 3:00
Original issue reported on code.google.com by
k...@heldig.org
on 29 Mar 2012 at 1:02