Hi

For information "data" is in the base Feature class while "attributes"
is in the Feature.Vector class. "data" is there for historical reason
and isn't to be used when using Feature.Vector, so you should use
"attributes". This is particularly true if you're to use a Format to
serialize features, or to style your features based on property
values.

Eric

2009/1/5, Bill Thoen <bth...@gisnet.com>:
> I want to create some points in a vector layer and associate some data
> values with them. It looks like I could store them in either the point
> feature's data object or its attributes object. Which should I use and
> what's the difference between these feature objects?
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to