[fusion-commits] r2401 - in trunk/widgets: BufferPanel Search SelectWithin Theme

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jun 14 04:17:49 EDT 2011


Author: liuar
Date: 2011-06-14 01:17:48 -0700 (Tue, 14 Jun 2011)
New Revision: 2401

Modified:
   trunk/widgets/BufferPanel/BufferPanel.templ
   trunk/widgets/BufferPanel/ErrorPage.templ
   trunk/widgets/Search/ErrorPage.templ
   trunk/widgets/SelectWithin/SelectWithinPanel.templ
   trunk/widgets/Theme/thememain.php
Log:
Minor fixes affected by API update.

Modified: trunk/widgets/BufferPanel/BufferPanel.templ
===================================================================
--- trunk/widgets/BufferPanel/BufferPanel.templ	2011-06-14 08:16:06 UTC (rev 2400)
+++ trunk/widgets/BufferPanel/BufferPanel.templ	2011-06-14 08:17:48 UTC (rev 2401)
@@ -74,7 +74,7 @@
     mapName = document.getElementById('Frm').mapname.value;
     list.options.length = 0;
     var map = GetParent().Fusion.getMapByName(mapName);
-    var layers = map.aMaps[0].getSelectedLayers();  
+    var layers = map.getSelectedLayers();  
     if(layers.length > 0) {
       for(var i = 0; i < layers.length; i++) {
         var layer = layers[i];

Modified: trunk/widgets/BufferPanel/ErrorPage.templ
===================================================================
--- trunk/widgets/BufferPanel/ErrorPage.templ	2011-06-14 08:16:06 UTC (rev 2400)
+++ trunk/widgets/BufferPanel/ErrorPage.templ	2011-06-14 08:17:48 UTC (rev 2401)
@@ -35,7 +35,7 @@
     var map = GetParent().Fusion.getMapByName(mapName);
     if(map != null)
     {
-        map.reloadNamedMap(mapName);
+        map.reloadMap();
     }
 }
 

Modified: trunk/widgets/Search/ErrorPage.templ
===================================================================
--- trunk/widgets/Search/ErrorPage.templ	2011-06-14 08:16:06 UTC (rev 2400)
+++ trunk/widgets/Search/ErrorPage.templ	2011-06-14 08:17:48 UTC (rev 2401)
@@ -35,7 +35,7 @@
     var map = GetParent().Fusion.getMapByName(mapName);
     if(map != null)
     {
-        map.reloadNamedMap(mapName);
+        map.reloadMap();
     }
 }
 

Modified: trunk/widgets/SelectWithin/SelectWithinPanel.templ
===================================================================
--- trunk/widgets/SelectWithin/SelectWithinPanel.templ	2011-06-14 08:16:06 UTC (rev 2400)
+++ trunk/widgets/SelectWithin/SelectWithinPanel.templ	2011-06-14 08:17:48 UTC (rev 2401)
@@ -83,7 +83,6 @@
     }
 
     var mapWidget = GetParent().Fusion.getMapByName(mapName);
-    var map = mapWidget.aMaps[0];
     var params = {
       "mapname": mapName,
       "session": sessionId,
@@ -99,8 +98,7 @@
 
 function selectedSuccess(r) {
     var mapWidget = GetParent().Fusion.getMapByName(mapName);
-    var map = mapWidget.aMaps[0];
-    map.processQueryResults(zoomTo, r);
+    mapWidget.processQueryResults(zoomTo, r);
 }
 
 function selectedError(r) {
@@ -126,7 +124,7 @@
     var listNames = document.getElementById("layerNames");
     list.options.length = 0;
     var map = GetParent().Fusion.getMapByName(mapName);
-    var layers = map.aMaps[0].getSelectableLayers();
+    var layers = map.getSelectableLayers();
     if(layers.length > 0) {
       for(var i = 0; i < layers.length; i++) {
         var layer = layers[i];

Modified: trunk/widgets/Theme/thememain.php
===================================================================
--- trunk/widgets/Theme/thememain.php	2011-06-14 08:16:06 UTC (rev 2400)
+++ trunk/widgets/Theme/thememain.php	2011-06-14 08:17:48 UTC (rev 2401)
@@ -359,7 +359,7 @@
                 themeReqHandler = null;
 
                 var map = parent.Fusion.getMapByName(mapName);
-                map.reloadNamedMap(mapName);
+                map.reloadMap();
 
             }
         }



More information about the fusion-commits mailing list