Open maxammann opened 1 year ago
maplibre-rs should be able to cancel data or tile requests after starting them.
If the user scrolls into some area then the tiles get loaded. If the user navigates away then pending requests should be cancelled.
Currently we have kind a work queue, which gets processed in the order of submission. No cancellation possible.
There are two major parts in order to support cancellation for tiles:
We might switch to reqwest for the web target if it supports cancellation on all platforms.
Does not apply.
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:
🔦 Context
We might switch to reqwest for the web target if it supports cancellation on all platforms.
💻 Examples
Does not apply.