-
Notifications
You must be signed in to change notification settings - Fork 988
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
Access Marker Cluster from leaflet map and use refreshClusters #1069
Comments
At some point, you create the cluster with something like:
And later:
In my case, I do |
Awesome, thank you diwic! I will try that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Question)
I have created a Cluster map with multiple markers ( I am using Vue but it would be similar in vanilla javascript I believe)
I do have a side panel with a list of items and when I hover, it should highlight the markers and/or cluster (if marker is inside) in the map. The highlight functionality is working fine if I hardcoded the 'highlightedPinId' on load but it will chance dynamically on hover. So the goal is to update the marker/cluster color without reloading everything.
How can I access the leaflet map and cluster and refresh the cluster with markers. I thought using the refreshClusters function but I am not sure how access it from the outside ?
Minimal example of what I am trying to do
searchMap.vue
Thank you
The text was updated successfully, but these errors were encountered: