[fusion-commits] r2978 - sandbox/adsk/3.2o/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Apr 11 22:54:18 PDT 2017
Author: liuar
Date: 2017-04-11 22:54:18 -0700 (Tue, 11 Apr 2017)
New Revision: 2978
Modified:
sandbox/adsk/3.2o/layers/MapGuide/MapGuide.js
Log:
Set projection and units for additional overlay layer.
Modified: sandbox/adsk/3.2o/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/3.2o/layers/MapGuide/MapGuide.js 2017-04-11 07:02:39 UTC (rev 2977)
+++ sandbox/adsk/3.2o/layers/MapGuide/MapGuide.js 2017-04-12 05:54:18 UTC (rev 2978)
@@ -653,6 +653,10 @@
//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, "");
+ 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