Replies: 1 comment 2 replies
-
2800 * n DOM elements is a bad idea, you should find a way to show a lot less. |
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.
-
We are creating custom marker images and rendering 2800 markers to be mapped to Custom Map (.json).
If there are fewer Markers, the Custom Map works properly. However, if there are more Markers, the Custom Map may not be rendered properly. For example, a black map screen... Or if you zoom in or zoom out, it suddenly changes from the Custom Map screen to the weird Map screen...
I think it's because creating a lot of Markers with DOM creates a web load.
I've referenced the example code on this site.
https://maplibre.org/maplibre-gl-js/docs/examples/custom-marker-icons/
Is there a solution?
I also considered adding Layer, but I don't think it's suitable for the current project because it requires more complex process and code writing.
Still, if you see the code below and let me know how to add Layer, I will consider it.
In addition, the clustering plan is not suitable for the purpose of the current project.
Beta Was this translation helpful? Give feedback.
All reactions