[OpenLayers-Users] Add custom attribute for vector feature
Yasemin YILMAZ
yasemin.yilmaz.embedded at gmail.com
Wed Aug 8 04:51:00 PDT 2012
Hi all,
This question has been asked by Boris on *Wed Feb 17 06:37:36 EST 2010*.
The answer is very simple but it can be helpful for OpenLayers newbies like
me.
The constructor of OpenLayers.Feature.Vector allows to define it's
attributes with the second argument. Please look at OL's documentation at
http://dev.openlayers.org/docs/files/OpenLayers/Feature/Vector-js.html#OpenLayers.Feature.Vector.OpenLayers.Feature.Vector.
There is an example at
http://gis.stackexchange.com/questions/10204/programmatically-creating-a-vector-feature-in-openlayers.
Best Regards,
Yasemin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120808/a32dcbda/attachment.html>
More information about the Users
mailing list