[fusion-commits] r2985 - sandbox/adsk/3.0m/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Apr 24 00:34:57 PDT 2017


Author: liuar
Date: 2017-04-24 00:34:57 -0700 (Mon, 24 Apr 2017)
New Revision: 2985

Modified:
   sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js
Log:
Merged revision(s) 2978 from sandbox/adsk/3.2o:
Set projection and units for additional overlay layer.


Modified: sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js	2017-04-21 08:08:40 UTC (rev 2984)
+++ sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js	2017-04-24 07:34:57 UTC (rev 2985)
@@ -643,6 +643,10 @@
             //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, "");
+                if (wktProj && wktProj.proj && wktProj.proj.readyToUse) {
+                  this.oLayerOL2.projection = wktProj;
+                  this.oLayerOL2.projection.proj.units = this.mapTag.layerOptions.units;
+                }
                 this.mapWidget.oMapOL.addLayer(this.oLayerOL2);
                 this.oLayerOL2.setVisibility(true);
             }



More information about the fusion-commits mailing list