Pass interactiveLayerIds directly to Mapbox GL
kylebarron opened this issue · comments
I.e.:
const features = this.map.queryRenderedFeatures(
[
[x - pickingRadius, y - pickingRadius],
[x + pickingRadius, y + pickingRadius]
],
{ layers: interactiveLayerIds }
);
Should be faster than checking all layers, and then filtering.