Leaflet.markercluster
Leaflet.markercluster copied to clipboard
Customizable group opacity in MarkerCluster.Spiderfier.js
I propose to make the group element opacity customizable instead of fixed value similar to leg options:
this.setOpacity(0.3);
Are there any workarounds to solve this? This doesn't work:
cluster.on('spiderfied', (event) => {
event.cluster.options.opacity = 0;
});
cluster.on('unspiderfied', (event) => {
event.cluster.options.opacity = 1;
});
cluster.on('spiderfied', (event) => {
event.cluster.setOpacity(0);
});
cluster.on('unspiderfied', (event) => {
event.cluster.setOpacity(1);
});