Description
Changing the cluster property on a <Source> component does not update the cluster options of the source.
Expected Behavior
setClusterOptions() should be called on the source, instead only setData is called
|
(source as GeoJSONSourceImplementation).setData(props.data); |
Steps to Reproduce
https://codesandbox.io/p/devbox/fancy-dew-9ks4tr
The "Cluster" button should switch between clustered and unclustered, but nothing happens. To see what should happen fork the sandbox and change the default clustered state.
Environment
- Framework version: react-map-gl@8.0.4
- Map library: maplibre-gl@5.7.0
Logs
No response
Description
Changing the
clusterproperty on a<Source>component does not update the cluster options of the source.Expected Behavior
setClusterOptions()should be called on the source, instead onlysetDatais calledreact-map-gl/modules/react-maplibre/src/components/source.ts
Line 57 in c7112cf
Steps to Reproduce
https://codesandbox.io/p/devbox/fancy-dew-9ks4tr
The "Cluster" button should switch between clustered and unclustered, but nothing happens. To see what should happen fork the sandbox and change the default
clusteredstate.Environment
Logs
No response