Yankovsky / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Bug: Marker Clusterer disappears when zooming out on a map with a minZoom #174

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If the map that is being clustered has a minZoom then zooming out beyond the 
minZoom removes all clusters from the map because no idle event is triggered by 
Google Maps.

I've fixed this by allowing a minZoom to be passed in and adjusting the code 
that simulates the idle event to:

if (this.getZoom() === this.get("minZoom") || this.getZoom() === 
this.get("maxZoom")) {
  google.maps.event.trigger(this, "idle");
}

Original issue reported on code.google.com by ryw...@gmail.com on 2 May 2012 at 7:10

GoogleCodeExporter commented 9 years ago
here is a better fix:

if (this.getZoom() === (this.get("minZoom") || 0) || this.getZoom() === 
this.get("maxZoom")) {
        google.maps.event.trigger(this, "idle");
}

Original comment by ryw...@gmail.com on 2 May 2012 at 7:16

GoogleCodeExporter commented 9 years ago
This has now been fixed in the tagged 2.0.14 release of MarkerClustererPlus.

http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplu
s/2.0.14/

Original comment by garylitt...@gmail.com on 16 May 2012 at 2:52

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by ryw...@gmail.com on 17 May 2012 at 7:07