Hello list,
Let me showcase my issue straightaway.
I have a GML layer served from a json file containing lots of features one of which looks like
{"type":"FeatureCollection","features":[{"type":"Feature","id":"property_final.1","geometry":{"type":"MultiPolygon","coordinates":[.....]},"geometry_name":"the_geom","properties":{"Id":76,"Name":"David","Ph_no":234}}
When i try to get this feature using
layer.getFeatureById('property_final.1') to change its styling,it gives me null .I feelthat I am trying to do something terribly stupid since 'property_final.1' is seen as 'fid'.If its the case which id should I pass as a parameter to the funtion getFeatureById()? and how will i get the id value?
Is there any methodology to get a feature from any property value?
Thanks in advance
Sumith
<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/getFeaturebyId-clarification-tp4518258p4518258.html">getFeaturebyId clarification</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>