Klodd65 / 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 in handling maxzoom level #277

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
markermanager 1.2 has a function 

MarkerManager.prototype.getOptMaxZoom_ = function (opt_maxZoom) {
  return opt_maxZoom || this.maxZoom_;
};

If you add a marker with maxzoom 0 (so you only want to show this marker on 
zoomlevel 0), the above code fails. It will then actually use the global 
maxzoom and the marker is shown on all levels. 

What steps will reproduce the problem?
1. add a marker with maxzoom 0 to the markermanager using addMarker(marker, 0, 
0)

Expected result:
The marker should only be visible on zoomlevel 0

Actual result:
The marker is visible in all zoomlevels.

Version: 1.2

Browser / Operating System:
All tested browsers.

Additional comments:

Original issue reported on code.google.com by cor.bosman on 9 Nov 2013 at 10:10