Open Pioneer Trails Packages
    Preparing search index...

    Interface SearchResult

    Represent the result of a search.

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

    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.

    label: string

    Display text representing this result. Will be shown in the search widget's suggestion list.

    projection?: string

    The projection of the geometry.

    properties?: Readonly<Record<string, unknown>>

    Properties of the feature.

    style?: Style

    Additional style information for displaying the feature on the map.