You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 1 source that is used by 2 layers, when I use map.queryRenderedFeatures(event.point,{layers:["circle-layer"]}) it should return 1 feature since only one feature is rendered on circle-layer. But it actually duplicates feature because(?) circle-label layer is also using same source.
Expected Behavior
Only 1 feature is returned from queryRenderedFeatures
Actual Behavior
2 duplicated features are returned from queryRenderedFeatures
The text was updated successfully, but these errors were encountered:
mapbox-gl-js version: 2.10.0
browser: Google Chrome Version 107.0.5304.62 (Official Build) (x86_64)
Steps to Trigger Behavior
queryRenderedFeatures
Link to Demonstration
https://codepen.io/sienki-jenki/pen/rNvOqGy
I have 1 source that is used by 2 layers, when I use
map.queryRenderedFeatures(event.point,{layers:["circle-layer"]})
it should return 1 feature since only one feature is rendered oncircle-layer
. But it actually duplicates feature because(?)circle-label
layer is also using same source.Expected Behavior
Only 1 feature is returned from
queryRenderedFeatures
Actual Behavior
2 duplicated features are returned from
queryRenderedFeatures
The text was updated successfully, but these errors were encountered: