Skip to main content

@mapgear/geoapps > Drawing > AddFeature

Drawing.AddFeature() method

Creates a feature on the dataset from the WKT-string

Signature:
AddFeature(wkt: string, attributes: FeatureAttribute[]): void;

Parameters

ParameterTypeDescription
wktstringWKT-string containing the drawn feature
attributesFeatureAttribute[]Values that will be stored in the dataset attributes of the new feature
Returns:

void