[OpenLayers-Users] How to add attributes to a new feature

boesiii boesiii at yahoo.com
Thu Jun 5 11:35:33 PDT 2014


I figured it out.  Since I only needed a specific attribute (PIPE_DIAM) I
used the following:
var feature_att = this.sourceLayer.features[i].attributes.PIPE_DIAM;
var p_feature = new OpenLayers.Feature.Vector( p_geom, { angle: lineangle,
PIPE_DIAM: feature_att } ); 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-add-attributes-to-a-new-feature-tp5144282p5144286.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list