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

DataMaps should only load visible tile, and lazyload tiles that are outside of view #306

Open
alistair3149 opened this issue Nov 23, 2024 · 0 comments
Labels
1. bug Something isn't working

Comments

@alistair3149
Copy link
Contributor

Describe the bug
DataMaps is loading all image tiles even if they are outside of the map viewport. This is causing a lot of unnessecary network load and it defeats the benefit of having a tile map.

To Reproduce
Steps to reproduce the behavior:

  1. Create a tile map
  2. Set your map to zoom into a marker, or use the mini layout
  3. Observe the network request in your browser devtools

Expected behavior
Only images that are visible in the map view are loaded

Live demo
https://tolkiengateway.net/wiki/User:Alistair3149/sandbox/datamapmini

@alistair3149 alistair3149 added the 1. bug Something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant