I'm pretty new to Svelte and MapLibre, so my knowledge is limited.
While I got creating Markers and Lines pretty easily, I can't figure out how do I clear out markers no longer required or all of them from my map.
You just use normal Svelte template control flow statements like #if and #each. When the component gets removed then it will removes its corresponding elements from the map.
I'm pretty new to Svelte and MapLibre, so my knowledge is limited. While I got creating Markers and Lines pretty easily, I can't figure out how do I clear out markers no longer required or all of them from my map.