symbol-sort-key doesnt influence feature order of queryRenderedFeatures
Author: enersis-pstCreated Jun 23, 2021Updated Sep 17, 2026
Labelsbug :lady_beetle:needs investigation :mag:
If symbol-sort-key is used the markers are visuell sorted by a property. But by click on the higher marker the lower will be first in the list of queryRenderedFeatures.
mapbox-gl-js version: 2.3.1
browser: Chrome
Steps to Trigger Behavior
- open example
- zoom out until markers overlaps each others
- click on a marker
Link to Demonstration
https://jsfiddle.net/7t02vbhc/63/
Expected Behavior
console should output A
Actual Behavior
console output B
Source: mapbox/mapbox-gl-js