MadBlake / google-maps-utility-library-v3

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

MarkerClusterer, max zoom level still using cluster (should disable cluster as max zoom) #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set two marker at the same lat/lng
2. zoom to max level

Expected result:
expected no cluster icons

Actual result:
still using cluster icons

Version: 1.0

Additional comments:
Line 736: 
   if (zoom > mz) {
Should change to 
   if (zoom >= mz) {

Original issue reported on code.google.com by mac4w...@gmail.com on 6 Apr 2010 at 12:42

GoogleCodeExporter commented 9 years ago
Based on the name, I would expect "maxZoom" to be the maximum zoom level at 
which the clusterer still does 
its thing. Remember that you can change maxZoom by passing it as an option to 
the Constructor.

As an example:

        zoom = 13; 
        markerClusterer = new MarkerClusterer(map, markers, {
          maxZoom: zoom,
        });

And that way ALL markers are shown at zoom levels 14+

Original comment by dave.bc on 16 May 2010 at 5:51

GoogleCodeExporter commented 9 years ago
That comment is correct, the intention was to be the mamimum zoom level that 
the clustering happens.

Original comment by lu...@google.com on 31 Aug 2010 at 1:41