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

vrbikdan vrbikdan at gmail.com
Thu Mar 22 05:51:48 EDT 2012


Hi,
I changed code to this:

eventListeners: {
                getfeatureinfo: function(event) {
		       for (var i = 0; i < e.features.length; i++) {
                       var feature = e.features[i];
                       var attributes = feature.attributes;
            }}}

but console writes "Cannot read property 'length' of undefined" :(

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/one-attribute-from-getFeatureInfo-tp4636316p4644002.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list