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

Cluster counts need to be updated when features are unselected #1

Open
roikle opened this issue Jan 18, 2021 · 2 comments
Open

Cluster counts need to be updated when features are unselected #1

roikle opened this issue Jan 18, 2021 · 2 comments
Assignees

Comments

@roikle
Copy link
Collaborator

roikle commented Jan 18, 2021

Issue: When a user un-checks an item in the map legend, cluster count numbers don't update, but need to.

@roikle roikle self-assigned this Jan 18, 2021
@roikle roikle transferred this issue from CSBP-CPSE/web-mapping-dev Feb 4, 2021
@roikle
Copy link
Collaborator Author

roikle commented Apr 22, 2021

Progress update. It appears filtering on a data source before clustering isn't possible with Mapbox. See the following discussions;

Based on what I've read and tried through experimentation, one possible solution would be to store a copy of the geojson in the browser's memory, and when a user makes a change to the map, the a copy of the original data source is updated (e.g. features are filtered) and the data source used by the map/clusters/layers is updated.

@Noznoc any ideas on how to solve this?

@Noznoc
Copy link
Member

Noznoc commented Jun 22, 2021

From my experience with clustering, I would have the points stored in the browser's memory for retrieval and rendering. Considering the point sizes are not that big, we could do this, but not sure how much effort this would take versus just waiting until we have an appropriate database set up.

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

No branches or pull requests

2 participants