just include it in the url query string, see the mapagent example for the correct format
On Wed, Sep 25, 2013 at 8:40 AM, GordonL <[email protected]>wrote: > Is there a way to return the GETFEATUREINFO from MapGuide as XML rather > than > HTML? > > What I am doing now: > > info = new OpenLayers.Control.WMSGetFeatureInfo({ > url: > > '/mapguide/mapagent/mapagent.fcgi?FORMAT=image/png&TRANSPARENT=TRUE&SRS=EPSG:3857&service=WMS&VERSION=1.1.1', > title: 'Identify features by clicking', > queryVisible: true, > *INFO_FORMAT: 'text/xml',* > eventListeners: { > getfeatureinfo: function(event) { > alert(event.text); > > map.addPopup(new OpenLayers.Popup.FramedCloud( > "chicken", > map.getLonLatFromPixel(event.xy), > null, > event.text, > null, > true > )); > } > } > }); > map.addControl(info); > info.activate(); > > Works great except I need it as XML rather than HTML to parse later.... > > > > > > -- > View this message in context: > http://osgeo-org.1560.x6.nabble.com/WMS-GetFeatureInfo-tp5079730.html > Sent from the MapGuide Users mailing list archive at Nabble.com. > _______________________________________________ > mapguide-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapguide-users > -- Zac Spitzer +61 405 847 168
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
