[fusion-commits] r2899 - trunk/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Apr 21 05:28:09 PDT 2015


Author: jng
Date: 2015-04-21 05:28:08 -0700 (Tue, 21 Apr 2015)
New Revision: 2899

Modified:
   trunk/layers/MapGuide/MapGuide.js
Log:
#566: Allow buffer/redline and other widgets that introduce temporary layers to work against fully tiled maps

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2015-04-02 07:15:30 UTC (rev 2898)
+++ trunk/layers/MapGuide/MapGuide.js	2015-04-21 12:28:08 UTC (rev 2899)
@@ -639,13 +639,12 @@
                 }                               
             }
             
-            //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 && o.hasDynamicLayers) {
-                this.oLayerOL2 = this.createOLLayer(this._sMapname + "_DynamicOverlay",true,2,true, "");
-                this.mapWidget.oMapOL.addLayer(this.oLayerOL2);
-                this.oLayerOL2.setVisibility(true);
-            }
+            // 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);
         }
         
         //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