Hello,

I am trying to place labels in the middle of a line and I am starting with
link[0] below.  The script from the link below reads the features and
creates new point feature layer and it calculates line rotation.  I would
like to transfer attributes to the new point feature layer but cannot figure
it out.  The script below creates a new feature 

I know how to gather the feature attributes
var feature_att = this.sourceLayer.features[i].attributes;

but I am stuck on how to transfer those attributes to the new features
created
var p_feature = new OpenLayers.Feature.Vector( p_geom, { angle: lineangle }
);



[0] http://openlayers-buch.de/beispiele/chapter-10/layer-lineDirection.html



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-add-attributes-to-a-new-feature-tp5144282.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to