[OpenLayers-Users] how to extractAttributes in WFS GetFeature
Example?
Alex Zeit
zeitalex at googlemail.com
Thu Apr 8 08:02:19 EDT 2010
Dear All,
1) How can I set extractAttributes to true in WFS GetFeature Example to get
access to feature attributes?
I tried with OpenLayers.Protocol.WFS but without success.
2) Is it a right way to access attributes?:
control.events.register("featureselected", this, function(e) {
select.addFeatures([e.feature]);
var feats = e.layer.features; // This is the Layer.Vector
for(item in feats) {
atts = item.attributes;
alert(atts.first);
}
OR
for(i = 0; i < feats.length; i++) {
alert(feats[i].attributes.first);
}
});
WFS GetFeature Example I am customizing is on:
http://hboard.iwk.uni-karlsruhe.de:8080/QuickStartWicket-1.0-SNAPSHOT/qswicket/?wicket:bookmarkablePage=:wicketqs.GetFeatureWfs
Any help would be highly appreciated
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100408/e21f06a6/attachment.html
More information about the Users
mailing list