[OpenLayers-Users] Vector layer getFeatureBy
Allan Oware
lumtegis at gmail.com
Thu Sep 13 07:36:34 PDT 2012
Hello,
I've created a wfs layer object from OpenLayers.Layer.Vector,
however when i call its getFeatureBy method and proceed on to fetch an
attribute, null
is returned, i.e
var feature = wfs_layer.getFeatureBy('CountyId', '12');
var name_ = feature.attributes.Name;
apparently Name is infact an attribute field as observed from
geoserver while 12 is a valid value.
have i made a mistake or getFeatureBy method doesnt work that way ?
Thanks.
--
Allan Oware
Upande LTD | www.upande.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120913/006d42d4/attachment.html>
More information about the Users
mailing list