[fusion-commits] r2738 - trunk/layers/MapGuide

svn_fusion at osgeo.org svn_fusion at osgeo.org
Tue Jun 25 19:51:33 PDT 2013


Author: jng
Date: 2013-06-25 19:51:33 -0700 (Tue, 25 Jun 2013)
New Revision: 2738

Modified:
   trunk/layers/MapGuide/MapGuide.js
Log:
QUERYMAPFEATURES json support is not uniform, so leave the original fragment there but comment them out with a note attached.

Modified: trunk/layers/MapGuide/MapGuide.js
===================================================================
--- trunk/layers/MapGuide/MapGuide.js	2013-06-26 02:47:36 UTC (rev 2737)
+++ trunk/layers/MapGuide/MapGuide.js	2013-06-26 02:51:33 UTC (rev 2738)
@@ -1396,6 +1396,10 @@
                                                                 layerAttributeFilter);
             var callback = (options.extendSelection == true) ? OpenLayers.Function.bind(this.processAndMergeFeatureInfo, this) : OpenLayers.Function.bind(this.processFeatureInfo, this);
             Fusion.oBroker.dispatchRequest(r, callback);
+            //Uncomment below lines (and comment line above) if QUERYMAPFEATURES does not support JSON output (http://trac.osgeo.org/mapguide/ticket/2090)
+            //Fusion.oBroker.dispatchRequest(r, 
+            //    OpenLayers.Function.bind(Fusion.xml2json, this, 
+            //        callback));
         }
     },
 
@@ -1617,6 +1621,10 @@
                                             maxFeatures, persist, selection, filter, layerNames,
                                             layerAttributeFilter);
             oBroker.dispatchRequest(r, OpenLayers.Function.bind(this.parseMapTip, this));
+            //Uncomment below lines (and comment line above) if QUERYMAPFEATURES does not support JSON output (http://trac.osgeo.org/mapguide/ticket/2090)
+            //oBroker.dispatchRequest(r, 
+            //    OpenLayers.Function.bind(Fusion.xml2json, this, 
+            //        OpenLayers.Function.bind(this.parseMapTip, this)));
         }
     },
     



More information about the fusion-commits mailing list