On this page

Type Alias QueryIntersectsFeatureParams

type QueryIntersectsFeatureParams = {
    feature: VectorTileFeatureLike;
    featureState: FeatureState;
    geometry: Point[][];
    getElevation: undefined | ((x: number, y: number) => number);
    pixelPosMatrix: mat4;
    pixelsToTileUnits: number;
    queryGeometry: Point[];
    transform: IReadonlyTransform;
    unwrappedTileID: UnwrappedTileID;
    zoom: number;
}
Index

Properties

The feature to allow expression evaluation.

featureState: FeatureState

The feature state to allow expression evaluation.

geometry: Point[][]

The geometry of the feature. This geometry is in tile coordinates.

getElevation: undefined | ((x: number, y: number) => number)

A function to get the elevation of a point in tile coordinates.

pixelPosMatrix: mat4

The matrix to convert from tile coordinates to pixel coordinates. The pixel coordinates are relative to the center of the screen.

pixelsToTileUnits: number

The number of pixels per tile unit.

queryGeometry: Point[]

The geometry to check intersection with. This geometry is in tile coordinates.

The transform to convert from tile coordinates to pixels.

unwrappedTileID: UnwrappedTileID

The unwrapped tile ID for the tile being queried.

zoom: number

The current zoom level.

Was this helpful?
SDK JS
Reference
QueryIntersectsFeatureParams