[fusion-commits] r1684 - in trunk/layers: MapGuide MapServer

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Nov 25 15:27:42 EST 2008


Author: madair
Date: 2008-11-25 15:27:42 -0500 (Tue, 25 Nov 2008)
New Revision: 1684

Modified:
   trunk/layers/MapGuide/MapGuide.js
   trunk/layers/MapServer/MapServer.js
Log:
closes #179: restore missing getSelectionCB function from MapGuide layer

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2008-11-25 18:45:13 UTC (rev 1683)
+++ trunk/layers/MapGuide/MapGuide.js	2008-11-25 20:27:42 UTC (rev 1684)
@@ -614,6 +614,15 @@
         return oLayer;
     },
 
+    getSelectionCB: function(userFunc, r) {
+      if (r.status == 200) {
+          var o;
+          eval("o="+r.responseText);
+          var oSelection = new Fusion.SelectionObject(o);
+          userFunc(oSelection);
+      }
+    },
+    
     /**
      * advertise a new selection is available and redraw the map
      */
@@ -716,7 +725,7 @@
                           'mapname': this._sMapname,
                           'layers': layers,
                           'startcount': startcount},
-              onSuccess: OpenLayers.Function.bind(this.getSelectionCB, this, userFunc, layers, startcount)
+              onSuccess: OpenLayers.Function.bind(this.getSelectionCB, this, userFunc)
           };
           Fusion.ajaxRequest(s, options);
       }

Modified: trunk/layers/MapServer/MapServer.js
===================================================================
--- trunk/layers/MapServer/MapServer.js	2008-11-25 18:45:13 UTC (rev 1683)
+++ trunk/layers/MapServer/MapServer.js	2008-11-25 20:27:42 UTC (rev 1684)
@@ -531,12 +531,10 @@
 
     hasSelection: function() { return this.bSelectionOn; },
 
-    getSelectionCB: function(userFunc, layers, startend, r) {
-      if (r.status == 200)
-      {
+    getSelectionCB: function(userFunc, r) {
+      if (r.status == 200) {
           var o;
           eval("o="+r.responseText);
-
           var oSelection = new Fusion.SelectionObject(o);
           userFunc(oSelection);
       }
@@ -622,7 +620,7 @@
             };
             var options = {
                 parameters:params,
-                onSuccess: OpenLayers.Function.bind(this.getSelectionCB, this, userFunc, layers, startcount)
+                onSuccess: OpenLayers.Function.bind(this.getSelectionCB, this, userFunc)
             };
             Fusion.ajaxRequest(s, options);
         }



More information about the fusion-commits mailing list