-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid flickering when longitude is wrapped while panning
When panning cross the antimeridian, the longitude value gets wrapped. This results in tileIDs getting assigned a different `wrap` value for tiles that cover roughly the same area on the screen. This pr calculates what this change in wrap values is and updates the state of both `SourceCache` and `CrossTileSymbolIndex` so that areas use the same tile and symbol state for the same screen areas even if they have a different `wrap` value. I think this is the long term fix for the CrossTileSymbolIndex. For SourceCache, it may be better to rework how tiles are retained so that you can actually use versions of tiles with a different wrap as tiles in the next frame.
- Loading branch information
Showing
4 changed files
with
73 additions
and
3 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
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