Skip to content

[Bug] Source does not update cluster options #2552

Open

Description

@kodebach

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

Activity

  1. changed the title [-][Bug][/-] [+][Bug] Source does not update cluster options[/+] on Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions