Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cluster source to unlisten from its source #10736

Merged
merged 4 commits into from
Feb 27, 2020

Conversation

M393
Copy link
Contributor

@M393 M393 commented Feb 25, 2020

This adds a setSource method to change or remove the cluster source's source.
Fixes #10728

When the source is changed the cluster source and the features array are cleared and refresh is called.
It allows to create the cluster source without a source (not sure if that's useful).

This adds a setSource method to change or remove the cluster source's source.
src/ol/source/Cluster.js Outdated Show resolved Hide resolved
src/ol/source/Cluster.js Outdated Show resolved Hide resolved
src/ol/source/Cluster.js Outdated Show resolved Hide resolved
Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ahocevar ahocevar merged commit e235ad0 into openlayers:master Feb 27, 2020
@M393 M393 deleted the clustersource-setsource branch February 27, 2020 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot cleanly dispose of ol/source/Cluster
2 participants