maplibre-gl-js icon indicating copy to clipboard operation
maplibre-gl-js copied to clipboard

modify the cluster property true/false

Open IhsenBen opened this issue 2 years ago • 3 comments

Hi it seems like there's no way to modify the cluster property on the source without resetting the whole thing, is it possible to do something like that instead:

map.addSource('some id', { type: 'geojson', data: geodata, cluster: true, clusterMaxZoom: 14, clusterRadius: 50, }); // // map.getSource('some id').setCluster(false)

IhsenBen avatar Jul 20 '22 15:07 IhsenBen

I have a feeling this was already reported, any change you can have a look?

HarelM avatar Jul 20 '22 15:07 HarelM

I have a feeling this was already retorted, any change you can have a look?

Yes, I did look into the docs before posting this issue

IhsenBen avatar Jul 20 '22 16:07 IhsenBen

Somewhat related: #429

HarelM avatar Jul 20 '22 16:07 HarelM

Hi again Can I work on this, please?

IhsenBen avatar Dec 21 '22 14:12 IhsenBen

Sure, enjoy! 😀

HarelM avatar Dec 21 '22 14:12 HarelM

Sure, enjoy! 😀

Just made a pull request #1998, tell me if I need to modify anything

IhsenBen avatar Dec 26 '22 23:12 IhsenBen

Looks like this should be closed since https://github.com/maplibre/maplibre-gl-js/pull/1998 has been merged.

SnailBones avatar Jan 14 '23 02:01 SnailBones

Looks like this should be closed since https://github.com/maplibre/maplibre-gl-js/pull/1998 has been merged.

Yes, I added the feature, maybe when it's released?

IhsenBen avatar Jan 14 '23 16:01 IhsenBen