[fusion-commits] r2908 - trunk/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Thu May 7 06:10:27 PDT 2015
Author: jng
Date: 2015-05-07 06:10:27 -0700 (Thu, 07 May 2015)
New Revision: 2908
Modified:
trunk/layers/MapGuide/MapGuide.js
Log:
#566: The fix was imperfect and caused undesirable side-effects where an initial layer/group toggle does not register until the first zoom/pan/refresh. This submission restores the bSingleTile check, but still disregards whether the tiled map has dynamic layers or not. This gives us the same desired result (ability to see runtime-inserted dynamic overlays from buffer/redline/etc) without our side-effect.
Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js 2015-05-07 12:16:01 UTC (rev 2907)
+++ trunk/layers/MapGuide/MapGuide.js 2015-05-07 13:10:27 UTC (rev 2908)
@@ -639,12 +639,13 @@
}
}
- // Whether this tiled map has untiled layers or not, create a dynamic overlay anyways
- // so that buffer, redline and other tools whose changes will only be visible in a dynamic
- // overlay will be visible
- this.oLayerOL2 = this.createOLLayer(this._sMapname + "_DynamicOverlay",true,2,true, "");
- this.mapWidget.oMapOL.addLayer(this.oLayerOL2);
- this.oLayerOL2.setVisibility(true);
+ //if we have a tiled map that also contains dynamic layers, we need to create
+ //an additional overlay layer to render them on top of the tiles
+ if(!this.bSingleTile) {
+ this.oLayerOL2 = this.createOLLayer(this._sMapname + "_DynamicOverlay",true,2,true, "");
+ this.mapWidget.oMapOL.addLayer(this.oLayerOL2);
+ this.oLayerOL2.setVisibility(true);
+ }
}
//Fix Defect: the Base Layer Group should be invisible when the "initially visiable in map" is set to false
More information about the fusion-commits
mailing list