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
--
View this message in context:
http://n2.nabble.com/getFeaturebyId-clarification-tp4518258p4518258.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users