Type alias FeatureIdentifier

FeatureIdentifier: {
    id?: string | number;
    source: string;
    sourceLayer?: string;
}

A feature identifier that is bound to a source

Type declaration

  • Optional id?: string | number

    Unique id of the feature.

  • source: string

    The id of the vector or GeoJSON source for the feature.

  • Optional sourceLayer?: string

    For vector tile sources, sourceLayer is required.