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