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

Decouple marker radius update from base layer update #134

Merged
merged 7 commits into from
Jun 30, 2022

Conversation

rod-glover
Copy link
Contributor

@rod-glover rod-glover commented Jun 30, 2022

Resolves #125

This PR uses React 18 concurrency features to decouple marker radius updates from the basemap updates on zoom.

This solution is simpler and more elegant than the React 17 version (using setTimeout), and permits us to show a spinner on the map while the radius is being updated.

Also shows a map spinner while stations are initially loading.

@rod-glover rod-glover force-pushed the marker-radius-spinner branch from ce2c325 to e99d884 Compare June 30, 2022 22:52
@rod-glover rod-glover merged commit bc9e318 into master Jun 30, 2022
@rod-glover rod-glover deleted the marker-radius-spinner branch June 30, 2022 23:34
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.

On zoom, layer updates are sometimes sluggish
1 participant