vue2-leaflet-markercluster icon indicating copy to clipboard operation
vue2-leaflet-markercluster copied to clipboard

Advanced example custom markercluster.

Open dolgovdv opened this issue 5 years ago • 4 comments

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.

dolgovdv avatar Apr 01 '19 11:04 dolgovdv

Hi, please provide your component code

jperelli avatar Apr 01 '19 22:04 jperelli

Hey. I want to access the cluster marker configuration features.

https://github.com/dolgovdv/vue-element-admin/blob/master/src/components/Map/map.vue

dolgovdv avatar Apr 02 '19 13:04 dolgovdv

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 avatar Sep 19 '19 13:09 AlexisWalravens

@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

donni106 avatar Apr 15 '20 09:04 donni106