[mapguide-users] WMS GetFeatureInfo
Zac Spitzer
zac.spitzer at gmail.com
Tue Sep 24 17:16:33 PDT 2013
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
<gordon.luckett at arrowgeomatics.com>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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
--
Zac Spitzer
+61 405 847 168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20130925/8ab69122/attachment.html>
More information about the mapguide-users
mailing list