Closed mits87 closed 6 years ago
Hi, I was trying to see how to make this.
marker cluster is working for geojson with type:points in it as it is now.
In order to make this work I'll need more info.
@mits87 Please view this lines for a solution https://github.com/jperelli/vue2-leaflet-markercluster/commit/f48f528747d485245ebe54499498deed58f0ad30#diff-43372b526e3f1e550782f2a76f3676c4R29
the trick is to use the onEachFeature
option for geojson to add getLatLng
, setLatLng
and _latlng
attributes to the layer so markercluster thinks this is a marker.
@jperelli I don't need it now but your trick is helpful, thank you for your works
Hi,
I'm using your awsome plugin for
KoRiGaN/Vue2Leaflet
and all works fine except clustering layers.This is standard code:
This I would like to works also:
Below you can find a video where you can see what I mean. https://www.dropbox.com/s/q2rp7ydltft0z5f/map_cluster_example.mp4
Could you add this feature to this package? Thx