[OpenLayers-Users] WMSGetFeatureInfo: find out layer names
Bart van den Eijnden
bartvde at osgis.nl
Wed Jan 6 11:44:46 EST 2010
Hi Frank,
the feature.type property has the name of the layer.
Best regards,
Bart
On Jan 5, 2010, at 11:22 AM, Frank Broniewski wrote:
> Hello list,
>
> I am using the WMSGetFeatureInfo function for querying my WMS layers. Works
> like a charm.
> In my map I have the possibility to query more than one layer for
> information. And now I search for a solution to find out for what layer the
> response was returned. Looking at the returned result from Firebug I can see
> that the common structure for the response is <msGMLOutput> and the next
> node child contains the layer name with the extension _layer. How can I
> access this node?
>
> Right now I use the following approach to work with the reponse:
> var reader = new OpenLayers.Format.WMSGetFeatureInfo();
> var features = reader.read(response.text);
>
> Does the read_msGMLOutput give me more options to work with the returned
> XML? Or do I need to convert the response to an OpenLayers.Format.XML first?
>
> Many thanks
>
> Frank
>
>
>
> Frank Broniewski
>
> Metrico s.àr.l. ( http://www.metrico.lu )
> 36, rue des Romains
> L-5433 Niederdonven
> Luxembourg
>
> Fon: +352 26 74 94 28
> Fax: +352 26 74 94 99
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
More information about the Users
mailing list