gachseang / google-maps-utility-library-v3

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

MarkerClusterer: Using undocumented property (maxZoom) #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been playing around with MarkerClusterer lately and have been able to 
successfully integrate into my interactive map with one enhancement and one 
workaround.

The workaround relates to this line of code with fails (for my map at least) 
once at startup time (probably because the map is still being configured when 
the MarkerClusterer zoom handler is called for the first time):

    var maxZoom = that.map_.mapTypes[that.map_.getMapTypeId()].maxZoom;

The problem I'm reporting relates to the maxZoom property. It does not appear 
to be mentioned in the V3 documentation. There is a discussion of a 
MaxZoomService but it relates to satellite imagery only and the maximum zoom 
level is not determined in the manner shown above.

I'm not sure if this is simply a deficiency in Google's documentation or a use 
of an undocumented property which could cause MarkerCluster to fail in the 
future if the property is removed or renamed.

Original issue reported on code.google.com by garylitt...@gmail.com on 25 Jun 2011 at 11:35

GoogleCodeExporter commented 9 years ago
Sorry, I've just discovered that maxZoom is documented. 

Please mark as Invalid.

Original comment by garylitt...@gmail.com on 25 Jun 2011 at 11:44

GoogleCodeExporter commented 9 years ago

Original comment by garylitt...@gmail.com on 12 Jul 2011 at 5:43