Skip to content

Conversation

@nertc
Copy link
Contributor

@nertc nertc commented Mar 10, 2025

This PR addresses "Map Data checkbox: perhaps use toggle slider instead" issue mentioned in the openstreetmap/openstreetmap-website#4931 and openstreetmap/openstreetmap-website#5009 (comment). It is continuation of #38.

Currently asynchronously loading data has no functionality to be canceled. Therefore, if user starts loading big amount of data and in the middle of the process decides to cancel it (even if removing each layer was called), it will load all elements asynchronously (and only after that will begin to remove all the elements).

This PR adds functionality to cancel asynchronous loading/removing in the middle of the process.

Was manually tested in the openstreetmap/openstreetmap-website#5009

Connected to the PR openstreetmap/openstreetmap-website#5009

@tomhughes tomhughes merged commit 5931089 into openstreetmap:master Mar 10, 2025
1 check passed
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.

2 participants