Open ghost opened 6 years ago
I'm have similar situation with one Angular app and I'l just handing all that logic directly with Leaflet's map object. Looks like in Vue2-Leaflet you could do the same:
https://www.npmjs.com/package/vue2-leaflet#how-can-i-access-the-leaflet-map-object-
I am aware of that but then I would have to handle reacivity manually(ie. adding/removing markers).
Hello @ivanjaros, I would like to use PruneCluster in my VueJS project. Everything works fine with Leaflet but I am struggling importing PruneCluster into my components (see #158), PruneCluster does not work with Webpack. Have you progressed on your side and do you have some directions to give me?
Thank you
S.
Hi, I have a Vue app and am using the https://www.npmjs.com/package/vue2-leaflet package and this library has nice UI so I would like to use it for clustering instead of the https://github.com/jperelli/vue2-leaflet-markercluster but from what I'm seeing the PruneCluster does not support existing layers holding markers. But maybe I'm wrong so I just wonder if it is possible to pass existing layer to the PruneClusterForLeaflet somehow? The constructor seems to have hardcoded L.Layer in it that it extends.