-
-
Notifications
You must be signed in to change notification settings - Fork 932
Open
Labels
PR is more than welcomedExtra attention is neededExtra attention is neededbugSomething isn't workingSomething isn't workingterrain
Description
When zoomed in far enough, the queryRenderedFeatures() function does not return all results if terrain is enabled.
maplibre-gl-js version: 5.9.0
browser: Chrome 141.0.7390.67
Steps to Trigger Behavior
- Add circles layer to the map
- Zoom in at least to around 14 or so, with points visible
- See results of queryRenderedFeatures() for the layer
- Turn on terrain
- See results of queryRenderedFeatures() for the layer has changed, sometimes drastically, from what was returned from 3 above, even if all the points are still visible
Link to Demonstration
https://jsbin.com/gehedaluvi/1/edit?html,output
This should already be zoomed and centered to a handful of points. Hit the terrain toggle button to see the rendered feature count change.
Expected Behavior
The queryRenderedFeatures() function should return all visible results when terrain is enabled
Actual Behavior
The queryRenderedFeatures() function does not always return all visible results when terrain is enabled
Metadata
Metadata
Assignees
Labels
PR is more than welcomedExtra attention is neededExtra attention is neededbugSomething isn't workingSomething isn't workingterrain