[fusion-commits] r2398 - trunk/layers/MapServer

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jun 2 15:11:59 EDT 2011


Author: madair
Date: 2011-06-02 12:11:59 -0700 (Thu, 02 Jun 2011)
New Revision: 2398

Modified:
   trunk/layers/MapServer/MapServer.js
Log:
closes #459: restore the parseLayers method in MapServer.js

Modified: trunk/layers/MapServer/MapServer.js
===================================================================
--- trunk/layers/MapServer/MapServer.js	2011-06-02 17:31:21 UTC (rev 2397)
+++ trunk/layers/MapServer/MapServer.js	2011-06-02 19:11:59 UTC (rev 2398)
@@ -490,6 +490,20 @@
 
     },
 
+    parseLayers: function() {
+        //this.layerRoot.clear();
+        for (var i=0; i<this.aLayers.length; i++) {
+            var layer = this.aLayers[i];
+            var parent;
+            if (layer.parentGroup != '') {
+                parent = this.layerRoot.findGroup(layer.parentGroup.name);
+            } else {
+                parent = this.layerRoot;
+            }
+            parent.addLayer(layer, this.bLayersReversed);
+        }
+    },
+
     parseMapLayersAndGroups: function(o) {
         //sort the groups so that root folders are created before subfolders 
         o.groups.sort(function(a,b) {return a.depth-b.depth} );



More information about the fusion-commits mailing list