[fusion-commits] r1445 - in trunk: MapGuide lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Aug 1 15:21:15 EDT 2008


Author: madair
Date: 2008-08-01 15:21:15 -0400 (Fri, 01 Aug 2008)
New Revision: 1445

Modified:
   trunk/MapGuide/MapGuide.js
   trunk/MapGuide/MapGuideViewerApi.js
   trunk/lib/Map.js
Log:
re #89: make calls to setSelection consistent

Modified: trunk/MapGuide/MapGuide.js
===================================================================
--- trunk/MapGuide/MapGuide.js	2008-07-29 21:01:32 UTC (rev 1444)
+++ trunk/MapGuide/MapGuide.js	2008-08-01 19:21:15 UTC (rev 1445)
@@ -629,7 +629,7 @@
       var params = {
           'mapname': this.getMapName(),
           'session': this.getSessionID(),
-          'selection': encodeURIComponent(selText),
+          'selection': selText,
           'seq': Math.random()
       };
       var options = {onSuccess: OpenLayers.Function.bind(this.processQueryResults, this, zoomTo), 

Modified: trunk/MapGuide/MapGuideViewerApi.js
===================================================================
--- trunk/MapGuide/MapGuideViewerApi.js	2008-07-29 21:01:32 UTC (rev 1444)
+++ trunk/MapGuide/MapGuideViewerApi.js	2008-08-01 19:21:15 UTC (rev 1445)
@@ -40,7 +40,7 @@
     var Fusion = window.top.Fusion;
     var mapWidget = Fusion.getWidgetById(mapWidgetId);
     if (mapWidget && mapWidget.isMapLoaded()) {
-        mapWidget.setSelection(selectionXml, true, true);
+        mapWidget.setSelection(selectionXml, true);
     }
 }
 

Modified: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js	2008-07-29 21:01:32 UTC (rev 1444)
+++ trunk/lib/Map.js	2008-08-01 19:21:15 UTC (rev 1445)
@@ -406,13 +406,13 @@
      },
 
      /**
-      * Function: setSelectionXML
+      * Function: setSelection
       *
       * sets a Selection XML back to the server
       */
-      setSelection: function(selText, requery, zoomTo) {
+      setSelection: function(selText, zoomTo) {
          for (var i=0; i<this.aMaps.length; i++ ) {
-             this.aMaps[i].setSelection(selText, requery, zoomTo);
+             this.aMaps[i].setSelection(selText, zoomTo);
          }
       },
 



More information about the fusion-commits mailing list