Ability to cancel tile requests (even after they start)
See original GitHub issueTarget Use case
Improve performance when getTileData
makes fetch
requests that are slow. Browsers only allow so many concurrent fetch
requests. If a user pans around enough fill up the max concurrent requests of the browser, then newer requests for what the user is actually seeing are queued behind requests for tiles that are now off the screen.
Proposed feature
Expose an AbortSignal instance to the getTileData
function. If a tile’s request is “cancelled”, then its abort signal is triggered. This AbortSignal can be passed to the fetch
options in order to cancel the fetch request if, for example, a tile never finished loading and is now off the screen.
To Do List
- Add label and assign to milestone
- Coding
- Doc update
- What’s new update
- Test
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
ArcGIS JavaScript API Cancel tile fetches - Esri Community
The behaviour I would like to see is to have the browser/API somehow be able to cancel fetches if they're no longer needed...
Read more >Tile Permission Settings
Permissions and Settings on your iOS device In the Tile App, Tap Settings. Scroll down to and select Permissions Status. You'll see a...
Read more >Cancel, pause, or change a subscription on Google Play
On your Android device, go to your subscriptions in Google Play. Select the subscription you want to cancel. Tap Cancel subscription. Follow the...
Read more >Terms of Service - Tile
YOUR PURCHASE OF A PREMIUM MEMBERSHIP IS FINAL AND YOU WILL NOT BE ABLE TO CANCEL THE PURCHASE AND/OR RECEIVE A REFUND AT...
Read more >Monitor key requests | Dynatrace Docs
After you manually identify a key request, its trend lines are retained perpetually. Show key requests on a dashboard. To create a dashboard...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note that the
data
prop doesn’t callfetch
on its own. Thedata
prop only handles url resolution, and then passes togetTileData
. So I think your argument 2 is to send anAbortSignal
instance to the defaultgetTileData
, which isfetch
: https://github.com/visgl/deck.gl/blob/1aff4952f5a5229abcd18e50af977c25eabee76a/modules/geo-layers/src/tile-layer/tile-layer.js#L139-L144The PR is now ready for review and works well I think.