Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced example custom markercluster. #29

Open
dolgovdv opened this issue Apr 1, 2019 · 4 comments
Open

Advanced example custom markercluster. #29

dolgovdv opened this issue Apr 1, 2019 · 4 comments

Comments

@dolgovdv
Copy link

dolgovdv commented Apr 1, 2019

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.

@jperelli
Copy link
Owner

jperelli commented Apr 1, 2019

Hi, please provide your component code

@dolgovdv
Copy link
Author

dolgovdv commented Apr 2, 2019

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

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

@AlexisWalravens
Copy link

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

@donni106
Copy link

donni106 commented Apr 15, 2020

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants