[fusion-commits] r2856 - in trunk: . layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Jun 24 22:01:20 PDT 2014
Author: jng
Date: 2014-06-24 22:01:20 -0700 (Tue, 24 Jun 2014)
New Revision: 2856
Modified:
trunk/
trunk/layers/MapGuide/MapGuide.js
Log:
Merged revision(s) 2855 from branches/fusion-mg26:
#618: Undo r2739. This was causing problems with Map Definitions with multiple base groups. In fact I suspect that revision should not have been in there in the first place and probably landed there as a result of various merges.
........
Property changes on: trunk
___________________________________________________________________
Modified: svn:mergeinfo
- /branches/fusion-mg24:2560
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
+ /branches/fusion-mg24:2560
/branches/fusion-mg26:2855
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js 2014-06-25 05:00:08 UTC (rev 2855)
+++ trunk/layers/MapGuide/MapGuide.js 2014-06-25 05:01:20 UTC (rev 2856)
@@ -639,6 +639,19 @@
this.oLayerOL2.setVisibility(true);
}
}
+
+ //Fix Defect: the Base Layer Group should be invisible when the "initially visiable in map" is set to false
+ var i = 0;
+ var j = 0;
+ for(i = 0;i < this.layerRoot.groups.length; i++){
+ if(this.layerRoot.groups[i].isBaseMapGroup && !this.layerRoot.groups[i].initiallyVisible){
+ for(j = 0; j<this.oLayersOLTile.length; j++) {
+ if(this.oLayersOLTile[j].params.basemaplayergroupname === this.layerRoot.groups[i].name) {
+ this.oLayersOLTile[j].setVisibility(false);
+ }
+ }
+ }
+ }
},
/**
* Callback function from a LoadMap.php request
More information about the fusion-commits
mailing list