<MglImage> and Dynamic Image Loading #144
Unanswered
julienmey21
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Hi, I believe your use case is not possible right now. To load image dynamically, you should listen to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am building a social map.
I've successfully displayed users' thumbnails on the map using MglImage, MglGeoJsonSource, and MglSymbolLayer. I have working clustering logic, thumbnails, and so on — everything is functioning well.
However, I’ve run into a scalability issue: MglImage loads all thumbnails at once when the map loads, which isn’t feasible with thousands of users.
To work around this, I tried implementing bounds-based filtering and lazy loading of thumbnails. This mostly works, but I run into this error:
I’ve tried to use MglImage dynamically, but without success. Has anyone implemented lazy image loading for images?
I'd appreciate any guidance or examples.
Thank you very much 🙏
Beta Was this translation helpful? Give feedback.
All reactions