Question: How do I style my cluster markers? #222
-
I've been searching for a while online and inside the documentation but I can't find a clear answer how I (and if I) can create some custom cluster markers. The closest I got was the render option for the cluster markers, but the documentation isn't really clear on what I can actually do with the render function. Hopefully someone can help me out with this question! I really like the plugin so far and would rather not switch do an other alternative! :D |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @tbmluijten You should be able to use the |
Beta Was this translation helpful? Give feedback.
-
Hi thanks for your response! |
Beta Was this translation helpful? Give feedback.
-
Ah for that I think you'll have to create a custom renderer: See the default renderer for reference: |
Beta Was this translation helpful? Give feedback.
-
For anybody who needs it. This is how I implemented it... Define your custom renderer:
And add it to marker cluster inside the template:
|
Beta Was this translation helpful? Give feedback.
For anybody who needs it. This is how I implemented it...
Define your custom renderer: