This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Consider tile overscaledZ when querying rendered features
Previously, the ScreenBox represented abstract points in the coordinate space. However, the query rendered features method works at the level of tiles and therefore at an actual an implied zoom level. The ScreenBox passed in from the SDK should represent the query rect in points and that rect should be adjusted to cover the per zoom level scale. This commit passes the ScreenBox down to the source's query `queryRenderedFeatures` method so that it can be adjusted for each evaluated tile. With this change, the expect number of point annotations are returned for any arbitrary ScreenBox rect (in points) at any zoom level.
- Loading branch information
Showing
3 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters