Open Pioneer Trails Packages
    Preparing search index...

    Interface BaseFeature<PropertiesType>

    Base interface for all feature objects with geometry and / or attribute information.

    interface BaseFeature<PropertiesType = Readonly<Record<string, unknown>>> {
        geometry?: Geometry;
        id: string | number;
        projection?: string;
        properties?: PropertiesType;
        style?: Style;
    }

    Type Parameters

    • PropertiesType = Readonly<Record<string, unknown>>

      The type of the properties of the feature. Use this parameter if you know the shape of features ahead of time. Note that this parameter should be some kind of object (not an array or primitive type).

    Hierarchy (View Summary)

    Index

    Properties

    geometry?: Geometry

    Geometry of the feature. Also specify the projection if geometry is set.

    id: string | number

    Identifier for the feature object. Must be unique within all features of one source/layer.

    If your source cannot provide a useful id on its own, another strategy to generate unique ids is to generate a UUID instead.

    projection?: string

    The projection of the geometry.

    properties?: PropertiesType

    Properties of the feature.

    style?: Style

    Additional style information for displaying the feature on the map.