[fusion-commits] r2990 - sandbox/adsk/3.0m/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jun 13 00:00:19 PDT 2017


Author: christinebao
Date: 2017-06-13 00:00:18 -0700 (Tue, 13 Jun 2017)
New Revision: 2990

Modified:
   sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js
Log:
Use 'post' in MgQueryMapFeatures2 because the URL may be too long.

Modified: sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js	2017-06-13 06:59:23 UTC (rev 2989)
+++ sandbox/adsk/3.0m/layers/MapGuide/MapGuide.js	2017-06-13 07:00:18 UTC (rev 2990)
@@ -1559,7 +1559,12 @@
                                                                 this.selectionColor,
                                                                 this.selectionImageFormat);
             var callback = (options.extendSelection == true) ? OpenLayers.Function.bind(this.processAndMergeExtendedFeatureInfo, this) : OpenLayers.Function.bind(this.processExtendedFeatureInfo, this);
+            // use 'post' because filter could be a long string.
+            var method = Fusion.oBroker.method;
+            Fusion.oBroker.method = 'post';
+            r.options.contentType = 'application/x-www-form-urlencoded';
             Fusion.oBroker.dispatchRequest(r, callback);
+            Fusion.oBroker.method = method;
         } else {
             var r = new Fusion.Lib.MGRequest.MGQueryMapFeatures(this.getSessionID(),
                                                                 this._sMapname,



More information about the fusion-commits mailing list