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

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
@maxammann maxammann added this to the Alpha Release 0.1.0 milestone Jul 26, 2024
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