[fusion-commits] r2904 - sandbox/adsk/2.6l/lib/OpenLayers
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed May 6 00:49:50 PDT 2015
Author: liuar
Date: 2015-05-06 00:49:50 -0700 (Wed, 06 May 2015)
New Revision: 2904
Modified:
sandbox/adsk/2.6l/lib/OpenLayers/OpenLayers.js
Log:
#631, set base layer's visibility only when zoom is defined and the base layer is commercial layer.
Modified: sandbox/adsk/2.6l/lib/OpenLayers/OpenLayers.js
===================================================================
--- sandbox/adsk/2.6l/lib/OpenLayers/OpenLayers.js 2015-04-26 16:10:02 UTC (rev 2903)
+++ sandbox/adsk/2.6l/lib/OpenLayers/OpenLayers.js 2015-05-06 07:49:50 UTC (rev 2904)
@@ -8126,10 +8126,12 @@
var bounds = this.getExtent();
//send the move call to the baselayer and all the overlays
- if (zoom >= this.baseLayer.MAX_ZOOM_LEVEL)
- this.baseLayer.setVisibility(false);
- else
- this.baseLayer.setVisibility(true);
+ 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(
@@ -8500,7 +8502,7 @@
* zoom - {Integer}
*/
zoomTo: function(zoom) {
- if (this.isValidZoomLevel(zoom)) {
+ if (zoom && this.isValidZoomLevel(zoom) && this.baseLayer.CLASS_NAME != "OpenLayers.Layer.MapGuide") {
if (zoom >= this.baseLayer.MAX_ZOOM_LEVEL)
this.baseLayer.setVisibility(false);
else
More information about the fusion-commits
mailing list