Function queryRenderedFeatures
- queryRenderedFeatures(lngLat, options?, pixBuffer?): (Feature<Geometry, {
[name: string]: any;
}> & {
layerId?: string;
})[] Parameters
- lngLat: LngLatLike
Optional
options: {
filter?: any[];
layers?: string[];
} & {
[key: string]: any;
}- pixBuffer: number = 20
Returns (Feature<Geometry, {
[name: string]: any;
}> & {
layerId?: string;
})[]
base on https://docs.mapbox.com/mapbox-gl-js/api/map/#map#queryrenderedfeatures