[fusion-commits] r2901 - sandbox/adsk/3.0m/lib/OpenLayers
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Apr 22 22:36:15 PDT 2015
Author: liuar
Date: 2015-04-22 22:36:15 -0700 (Wed, 22 Apr 2015)
New Revision: 2901
Modified:
sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js
Log:
#631, set the layer's visibility to original value when zoom level is in range.
Modified: sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js
===================================================================
--- sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js 2015-04-21 12:30:59 UTC (rev 2900)
+++ sandbox/adsk/3.0m/lib/OpenLayers/OpenLayers.js 2015-04-23 05:36:15 UTC (rev 2901)
@@ -8731,7 +8731,7 @@
if (zoom >= this.baseLayer.MAX_ZOOM_LEVEL)
this.baseLayer.setVisibility(false);
else
- this.baseLayer.setVisibility(true);
+ this.baseLayer.setVisibility(this.baseLayer.visibility);
if(this.baseLayer.visibility) {
this.baseLayer.moveTo(bounds, zoomChanged, options.dragging);
options.dragging || this.baseLayer.events.triggerEvent(
@@ -9116,7 +9116,7 @@
if (zoom >= map.baseLayer.MAX_ZOOM_LEVEL)
map.baseLayer.setVisibility(false);
else
- map.baseLayer.setVisibility(true);
+ map.baseLayer.setVisibility(map.baseLayer.visibility);
if (map.zoomTween) {
var currentRes = map.getResolution(),
targetRes = map.getResolutionForZoom(zoom),
More information about the fusion-commits
mailing list