vue2-leaflet-markercluster
vue2-leaflet-markercluster copied to clipboard
Advanced example custom markercluster.
Hello @jperelli. This is not a issue report. I'm just starting to learn vue and js. Your plugin helps a lot. Please show an advanced example for changing the cluster marker color settings via refreshClusters ().
If necessary, I can bring the cog of my component with the map. Thank you.
Hi, please provide your component code
Hey. I want to access the cluster marker configuration features.
https://github.com/dolgovdv/vue-element-admin/blob/master/src/components/Map/map.vue
Hey, any news on this ?
I'm trying to change the clusters Icon but I did not find how to...
Where and how should I place the iconCreateFunction
option ?
Thanks
@AlexisWalravens iconCreateFunction
should be part of the options
for the marker cluster.
<l-marker-cluster :options="clusterOptions">
with clusterOptions
in you data
of the component:
data() {
return {
...
clusterOptions: {
...
iconCreateFunction: () => {
...
}
}
...
}
}
all possible options are documented here: https://github.com/Leaflet/Leaflet.markercluster#all-options