[fusion-commits] r2926 - sandbox/adsk/3.1n/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Apr 6 00:12:54 PDT 2016


Author: liuar
Date: 2016-04-06 00:12:54 -0700 (Wed, 06 Apr 2016)
New Revision: 2926

Modified:
   sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js
Log:
User 'post' for MGQueryMapFeatures2 because the selText could be a very long string. 

Modified: sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js	2016-03-31 09:01:46 UTC (rev 2925)
+++ sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js	2016-04-06 07:12:54 UTC (rev 2926)
@@ -1276,12 +1276,10 @@
                                                                  this.selectionColor,
                                                                  this.selectionImageFormat);
             var callback = OpenLayers.Function.bind(this.onNativeSelectionUpdate, this, zoomTo, returnAttributes);
-            // use 'post' when the length is too long that exceeds the URL length limit
+            // use 'post' because selText could be a long string.
             var method = Fusion.oBroker.method;
-            if (selText.length > 2000) {
-                Fusion.oBroker.method = 'post';
-                r.options.contentType = 'application/x-www-form-urlencoded';
-            }
+            Fusion.oBroker.method = 'post';
+            r.options.contentType = 'application/x-www-form-urlencoded';
             Fusion.oBroker.dispatchRequest(r, callback);
             Fusion.oBroker.method = method;
         } else {



More information about the fusion-commits mailing list