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

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed May 30 01:52:09 PDT 2012


Author: liuar
Date: 2012-05-30 01:52:09 -0700 (Wed, 30 May 2012)
New Revision: 2538

Modified:
   trunk/layers/MapGuide/MapGuide.js
Log:
on behalf of yangte
http://trac.osgeo.org/fusion/ticket/525
Fix the defect about Fusion base map layer group visibility

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2012-05-21 06:23:01 UTC (rev 2537)
+++ trunk/layers/MapGuide/MapGuide.js	2012-05-30 08:52:09 UTC (rev 2538)
@@ -407,6 +407,19 @@
                     this.oLayerOL2.setVisibility(true);
                 }
             }
+
+            //Fix Defect: the Base Layer Group should be invisiable 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);
+                        }
+                    }    
+                }   
+            }
         }
         this.mapWidget._removeWorker();
         this.triggerEvent(Fusion.Event.LAYER_LOADED);



More information about the fusion-commits mailing list