Properties that can be passed into the constructor for data/Feature!Feature.

interface FeatureProperties {
    attributes?: Record<string, unknown> | Map<string, unknown>;
    failureMode?: FailureMode;
    geometry?: GeometryUnion | GeometryJson;
    id?: string;
    schema?: SchemaProperties;
    settings?: FeatureSettingsProperties;
    source?: FeatureSource;
}

Hierarchy (view full)

Properties

attributes?: Record<string, unknown> | Map<string, unknown>

The feature's attributes, keyed by field name.

failureMode?: FailureMode
geometry?: GeometryUnion | GeometryJson

The feature's geometry.

id?: string

The unique ID to assign to the entity. If not specified, one will be generated.

Metadata about the feature, such as fields, domains, geometry type, etc.

Settings for this feature.

source?: FeatureSource

The source of the feature.