Interface QueryTileFeatureIdentityDescriptor

interface QueryTileFeatureIdentityDescriptor {
    idProperty?: string | readonly string[];
    mapFeature?: QueryTileFeatureIdentityMapper;
    promoteId?: string | Readonly<Record<string, string>>;
    sourceIdProperty?: string;
    sourceLayerProperty?: string;
}

Properties

idProperty?: string | readonly string[]

Property name(s) that carry canonical feature id. The first non-nullish value wins. When omitted, MapLibre feature.id, id, OBJECTID, objectId, and fid are tried in that order.

Last-mile hook for protocols whose tile feature shape is not property based.

promoteId?: string | Readonly<Record<string, string>>

MapLibre promoteId value to expose on the generated source spec.

sourceIdProperty?: string

Optional property that overrides the descriptor's canonical source id.

sourceLayerProperty?: string

Optional property that carries the vector source-layer id.