[fusion-commits] r2906 - trunk/lib/OpenLayers/ext/OpenLayers
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 7 05:10:55 PDT 2015
Author: jng
Date: 2015-05-07 05:10:55 -0700 (Thu, 07 May 2015)
New Revision: 2906
Modified:
trunk/lib/OpenLayers/ext/OpenLayers/Map.js
Log:
#631: Apply fix to the affected source file
Modified: trunk/lib/OpenLayers/ext/OpenLayers/Map.js
===================================================================
--- trunk/lib/OpenLayers/ext/OpenLayers/Map.js 2015-05-07 12:00:34 UTC (rev 2905)
+++ trunk/lib/OpenLayers/ext/OpenLayers/Map.js 2015-05-07 12:10:55 UTC (rev 2906)
@@ -2015,7 +2015,12 @@
var bounds = this.getExtent();
//send the move call to the baselayer and all the overlays
-
+ if (zoom && this.baseLayer.CLASS_NAME != "OpenLayers.Layer.MapGuide") {
+ if (zoom >= this.baseLayer.MAX_ZOOM_LEVEL)
+ this.baseLayer.setVisibility(false);
+ else
+ this.baseLayer.setVisibility(true);
+ }
if(this.baseLayer.visibility) {
this.baseLayer.moveTo(bounds, zoomChanged, options.dragging);
options.dragging || this.baseLayer.events.triggerEvent(
@@ -2397,6 +2402,12 @@
if (map.baseLayer.wrapDateLine) {
zoom = map.adjustZoom(zoom);
}
+ if (zoom && map.baseLayer.CLASS_NAME != "OpenLayers.Layer.MapGuide") {
+ if (zoom >= map.baseLayer.MAX_ZOOM_LEVEL)
+ map.baseLayer.setVisibility(false);
+ else
+ map.baseLayer.setVisibility(true);
+ }
if (map.zoomTween) {
var currentRes = map.getResolution(),
targetRes = map.getResolutionForZoom(zoom),
More information about the fusion-commits
mailing list