[OpenLayers-Dev] WMSGetFeatureInfo issue

Bart van den Eijnden bartvde at osgis.nl
Tue Nov 29 09:15:17 EST 2011


Seems there is a parsing error. Is the XML returned valid?

Bart

-- 
Bart van den Eijnden
OSGIS - http://osgis.nl

On Nov 29, 2011, at 6:48 AM, Denis Rykov wrote:

> Hi OpenLayers dev team!
> 
> I have problem with WMSGetFeatureInfo control - e.features is undefined under IE 9 in following code:
> 
> new OpenLayers.Control.WMSGetFeatureInfo({
>             autoActivate: true,
>             infoFormat: 'application/vnd.ogc.gml',
>             maxFeatures: 1000,
>             layers: [lay_herbary, lay_all_tao_oopt],
>             queryVisible: true,
>             eventListeners: {
>                 'getfeatureinfo': function(e) {
>                     alert(e.features.length);     <- undefined in IE
>                 }
>                 ....
> 
> This is screenshot of IE debugger:
> http://img443.imageshack.us/img443/3158/wmsgetfeatureinfo.png
> 
> As you can see - type of e.features is IXMLDOMDocument2 but Array expected.
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20111129/35d307b5/attachment.html


More information about the Dev mailing list