Leaflet.markercluster icon indicating copy to clipboard operation
Leaflet.markercluster copied to clipboard

Customizable group opacity in MarkerCluster.Spiderfier.js

Open oldrich-s opened this issue 9 years ago • 2 comments

I propose to make the group element opacity customizable instead of fixed value similar to leg options:

this.setOpacity(0.3);

oldrich-s avatar Feb 03 '16 10:02 oldrich-s

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;
});

nikitalpopov avatar Apr 02 '19 12:04 nikitalpopov

cluster.on('spiderfied', (event) => {
    event.cluster.setOpacity(0);
});

cluster.on('unspiderfied', (event) => {
    event.cluster.setOpacity(1);
});

alpanyukov avatar May 14 '19 07:05 alpanyukov