[Feat] Add a viewport buffer around TileLayer
@charlieforward9 is already working on this.
Since Apr 29, 2026.
- Dominant language
- TypeScript
- Stars
- 14.6k
- Forks
- 2.3k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 42
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.