On 26/02/2014 12:11 p.m., zach cruise wrote:
thanks phil, i got that to work also, it being a pure javascript fix.

but for vector points with the same coordinates, fid returns "null".

alert(feature.fid);

is there a way to extract their attributes (OpenLayers.Format.GML?)?
I'd examine the feature data structure in the debugger where you put the Alert in. However, I dont work much with vector data (in my experience draw with WMS and query with WFS is the fastest way to do things) so not a lot of help. I am assuming that the vector data originated in GML in the first place?

--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to