Closed dramaking closed 7 years ago
Nice one, let me see if I can do something about this. Also, any pull request to solve this is welcome
@dramaking I fixed it in v1.2.0, but I don't know why it didn't work with watch deep:true, so you'll need to create a new options object every time you change an option, something like this:
newOptions = Object.assign({}, oldOptions, {opt: val})
You can also see the new example.vue
file, in this line https://github.com/jperelli/vue2-leaflet-markercluster/blob/master/example.vue#L57 to see how to change options
I am trying to give users the option to toggle the cluster by using "disableClusteringAtZoom" option:
then return the clusterOptions an object in the computed property.
But the map doesn't toggle the cluster unless I reload the page.
So I ended up doing this
Can we bind the cluster options to the map so that it can be updated immedietely?