ngyewch / svelte-leafletjs

Svelte component for leaflet.
https://ngyewch.github.io/svelte-leafletjs/
MIT License
99 stars 18 forks source link

Marker Cluster #26

Open yoh-extradat opened 1 year ago

yoh-extradat commented 1 year ago

Any chance for an implementation of markercluster?

eur2 commented 1 year ago

I would need it too! Maybe we could just build a new component of svelte-leaflet based on leaflet.markercluster ? Actually I'm using leaflet + markercluster as action in svelte-kit. The only issue is that I can't make the marker reactive for now…

Ennoriel commented 1 year ago

@Hello yoh-extradat @eur2 ,

Did you successfully integrate leaflet.markercluster? Would you be willing to share a piece of code? From what I understand, to make one MarkerCluster the same way as Marker, we would need the export L (to retrieve the map context) and the EventBridge but nont of those are exported at the moment.

Am I correct? Is this possible to update the library to expose those?