[fusion-commits] r2931 - in trunk: . layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Apr 18 04:46:09 PDT 2016


Author: jng
Date: 2016-04-18 04:46:08 -0700 (Mon, 18 Apr 2016)
New Revision: 2931

Modified:
   trunk/
   trunk/layers/MapGuide/MapGuide.js
Log:
Merged revision(s) 2926 from sandbox/adsk/3.1n:
User 'post' for MGQueryMapFeatures2 because the selText could be a very long string. 
........



Property changes on: trunk
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/fusion-mg24:2560
/branches/fusion-mg26:2855,2869
/sandbox/adsk/2.6l:2911
/sandbox/adsk/3.1n:2925
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
/sandbox/stamen:2873-2875
/sandbox/tiling:2845-2846
   + /branches/fusion-mg24:2560
/branches/fusion-mg26:2855,2869
/sandbox/adsk/2.6l:2911
/sandbox/adsk/3.1n:2925-2926
/sandbox/createruntimemap:2699-2708
/sandbox/jxlib-3.0:1957-2248
/sandbox/ol213:2801-2803
/sandbox/robust_error_handling:2818-2825
/sandbox/stamen:2873-2875
/sandbox/tiling:2845-2846

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2016-04-18 11:42:39 UTC (rev 2930)
+++ trunk/layers/MapGuide/MapGuide.js	2016-04-18 11:46:08 UTC (rev 2931)
@@ -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