[fusion-commits] r2855 - branches/fusion-mg26/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jun 24 22:00:08 PDT 2014


Author: jng
Date: 2014-06-24 22:00:08 -0700 (Tue, 24 Jun 2014)
New Revision: 2855

Modified:
   branches/fusion-mg26/layers/MapGuide/MapGuide.js
Log:
#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.

Modified: branches/fusion-mg26/layers/MapGuide/MapGuide.js
===================================================================
--- branches/fusion-mg26/layers/MapGuide/MapGuide.js	2014-06-25 03:59:22 UTC (rev 2854)
+++ branches/fusion-mg26/layers/MapGuide/MapGuide.js	2014-06-25 05:00:08 UTC (rev 2855)
@@ -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