[fusion-commits] r2989 - sandbox/adsk/3.1n/layers/MapGuide
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Jun 12 23:59:23 PDT 2017
Author: christinebao
Date: 2017-06-12 23:59:23 -0700 (Mon, 12 Jun 2017)
New Revision: 2989
Modified:
sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js
Log:
Use 'post' in MgQueryMapFeatures2 because the URL may be too long.
Modified: sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js
===================================================================
--- sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js 2017-06-08 01:56:34 UTC (rev 2988)
+++ sandbox/adsk/3.1n/layers/MapGuide/MapGuide.js 2017-06-13 06:59:23 UTC (rev 2989)
@@ -1551,7 +1551,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