Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat] Add a viewport buffer around TileLayer #8795

Open
jdgarrett opened this issue Apr 16, 2024 · 0 comments
Open

[Feat] Add a viewport buffer around TileLayer #8795

jdgarrett opened this issue Apr 16, 2024 · 0 comments
Labels

Comments

@jdgarrett
Copy link

Target Use Case

Right now if you pan or zoom a TileLayer, you'll see the new tiles come in on the edge of the screen, which leads to a choppy user experience. It would be nice if there was an option on the TileLayer to pre-load tiles off the edge of the screen so that no tile loading is visible in most cases (you'd probably still see tile loading when moving the camera quickly, such as with fly animations). This visual issue can be seen on the TileLayer example when you zoom in/out or pan the map.

Proposal

Maybe an extra option on the TileLayer for viewportBuffer or something where we can specify the number of pixels past the edge of the viewport to pre-load/render tiles in.

@jdgarrett jdgarrett changed the title [Feat] Add a buffer around TileLayer [Feat] Add a viewport buffer around TileLayer Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant