[fusion-commits] r1732 - branches/fusion-1.1/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Jan 8 13:34:28 EST 2009


Author: madair
Date: 2009-01-08 13:34:28 -0500 (Thu, 08 Jan 2009)
New Revision: 1732

Modified:
   branches/fusion-1.1/MapGuide/MapGuide.js
Log:
re #34: adding support for show/hide layers/groups

Modified: branches/fusion-1.1/MapGuide/MapGuide.js
===================================================================
--- branches/fusion-1.1/MapGuide/MapGuide.js	2009-01-08 18:33:01 UTC (rev 1731)
+++ branches/fusion-1.1/MapGuide/MapGuide.js	2009-01-08 18:34:28 UTC (rev 1732)
@@ -1078,10 +1078,10 @@
       for (var i=0; i<this.aLayers.length; ++i) {
         var layer = this.aLayers[i];
         if (layer.visible && !layer.initiallyVisible) {  //layer was turned on
-          showLayers.push(layer.name);
+          showLayers.push(layer.layerName);
         }
         if (!layer.visible && layer.initiallyVisible) {  //layer was turned off
-          hideLayers.push(layer.name);
+          hideLayers.push(layer.layerName);
         }
       }
       queryParams.showlayers = showLayers.join(',');
@@ -1093,10 +1093,10 @@
       for (var i=0; i<this.layerRoot.groups.length; ++i) {
         var group = this.layerRoot.groups[i];
         if (group.visible && !group.initiallyVisible) {  //layer was turned on
-          showGroups.push(group.name);
+          showGroups.push(group.groupName);
         }
         if (!group.visible && group.initiallyVisible) {  //layer was turned off
-          hideGroups.push(group.name);
+          hideGroups.push(group.groupName);
         }
       }
       queryParams.showgroups = showGroups.join(',');



More information about the fusion-commits mailing list