gi-nx / queryRenderedFeatures
ts
function queryRenderedFeatures(
lngLat?: LngLatLike,
options?: {
filter?: any[];
layers?: string[];
} & {
[key: string]: any;
},
pixBuffer?: number): Feature<Geometry, {
[name: string]: any;
}> & {
layerId?: string;
}[];base on https://docs.mapbox.com/mapbox-gl-js/api/map/#map#queryrenderedfeatures
Parameters
| Parameter | Type | Description |
|---|---|---|
lngLat? | LngLatLike | is a LngLatLike object |
options? | { filter?: any[]; layers?: string[]; } & { [key: string]: any; } | are the options for the mapbox queryRenderedFeatures |
pixBuffer? | number | is a number of pixels around the coordinate to query |
Returns
Feature<Geometry, { [name: string]: any; }> & { layerId?: string; }[]