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

Option for increasing the number of tiles buffered at the border of the viewport #10069

Closed
msschl opened this issue Nov 3, 2020 · 2 comments
Closed

Comments

@msschl
Copy link

msschl commented Nov 3, 2020

While zooming out a grey border gets visible at the border of the viewport. See image below:

image

It would be nice to have an option to increase the number of tiles that get buffered.
Maybe something similar to the keepbuffer of leaflet

@mourner
Copy link
Member

mourner commented Nov 3, 2020

@msschl keepbuffer is not about preloading tiles, it's about keeping already loaded ones. In case of GL JS, we already do a good job of cashing tiles for rendering, but we can't afford preloading tiles around the screen because it will affect performance severely for a very minor benefit. Also consider that you would need to preload a lot of tiles to accommodate rapidly zooming out. There's an alternative proposed in #2826 which might be better suited to address this.

@mourner mourner closed this as completed Nov 3, 2020
@msschl
Copy link
Author

msschl commented Nov 3, 2020

You're right. I got something mixed up. #2826 is what I'm looking for. Thanks though 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants