jperelli / vue2-leaflet-markercluster

markercluster plugin extension for vue2-leaflet package
MIT License
132 stars 55 forks source link

Leaflet.markercluster events #25

Closed sbstnplcn closed 5 years ago

sbstnplcn commented 5 years ago

Hi ! Is it possible to use Leaflet.markercluster events (https://github.com/Leaflet/Leaflet.markercluster#events) like spiderfied or unspiderfied in component ? Try to add @spiderfied or @clusterspiderfied and nothing works.

Thanks

jperelli commented 5 years ago

It works for me, just like in the example at this line https://github.com/jperelli/vue2-leaflet-markercluster/blob/master/example.vue#L5 I tried using @spiderfied="log('pepe')" and defined in the components method log: function() {console.log(arguments)}

Try using the latest v3.0.0, maybe it helps you. Otherwise please create and share a reproducible example. Thanks!