svelte-leafletjs icon indicating copy to clipboard operation
svelte-leafletjs copied to clipboard

Marker Cluster

Open yoh-extradat opened this issue 2 years ago • 2 comments

Any chance for an implementation of markercluster?

yoh-extradat avatar Dec 05 '22 14:12 yoh-extradat

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…

eur2 avatar Dec 27 '22 10:12 eur2

@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?

Ennoriel avatar Apr 15 '23 19:04 Ennoriel