AW: [OpenLayers-Users] Re: one attribute from getFeatureInfo

Morper-Busch, Lucia Lucia.Morper-Busch at sbg.ac.at
Thu Mar 22 05:42:04 EDT 2012


see example:
http://api.geo.admin.ch/main/wsgi/doc/build/api/wms.html

Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view


-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von vrbikdan
Gesendet: Donnerstag, 22. März 2012 09:36
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Re: one attribute from getFeatureInfo

Hi,
maybe a little bit progress. I changed info format to INFO_FORMAT:
'application/vnd.ogc.gml' and now my getfeatureinfo give mi back a gml. But
I can't extract single attribte from it. I think, that problem is somewhere
in eventlisteners here:

eventListeners: {
                getfeatureinfo: function(event) {
                    document.getElementById('get').innerHTML = event.text;
            }}

because this write plain text without any gml tags. But I'm beginner in OL
and JavaScript so I can't figure it out, what I should write into
eventListeners to extract single one attribute.

Dan

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/one-attribute-from-getFeatureInfo-tp4636316p4643851.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users


More information about the Users mailing list