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

Reply via email to