Accessing Attributes

You can access the attributes in a vector layer (GeoJSON and others):

var CellValue=TheLayer.GetAttributeCellByHeading("HeadingName",FeatureIndex); // returns a cell (attribute/field) value for a specific feature based on the specified header
var NumRows=TheLayer.GetNumAttributeRows(); // returns the number of rows (features) in the layer
TheLayer.SetAttributeCellByHeading('Heading',FeatureIndex); // sets the value in a cell of the attribute table