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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancellable data/tile loading #217

Open
maxammann opened this issue Nov 17, 2022 · 0 comments
Open

Cancellable data/tile loading #217

maxammann opened this issue Nov 17, 2022 · 0 comments
Labels
feature-request Request for a new feature

Comments

@maxammann
Copy link
Collaborator

maplibre-rs should be able to cancel data or tile requests after starting them.

馃 Expected Behavior

If the user scrolls into some area then the tiles get loaded. If the user navigates away then pending requests should be cancelled.

馃槸 Current Behavior

Currently we have kind a work queue, which gets processed in the order of submission. No cancellation possible.

馃拋 Possible Solution

There are two major parts in order to support cancellation for tiles:

  • Cancellable tessellation (~200ms)
  • Cancellable tile fetching (~100ms, but depends on connection speed)

馃敠 Context

We might switch to reqwest for the web target if it supports cancellation on all platforms.

馃捇 Examples

Does not apply.

@maxammann maxammann added the feature-request Request for a new feature label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant