question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to cancel tile requests (even after they start)

See original GitHub issue

Target 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kylebarroncommented, Jul 30, 2020

As part of the options passed to its fetch calls if the application passes data array with the x, y, z placeholders

Note that the data prop doesn’t call fetch on its own. The data prop only handles url resolution, and then passes to getTileData. So I think your argument 2 is to send an AbortSignal instance to the default getTileData, which is fetch: https://github.com/visgl/deck.gl/blob/1aff4952f5a5229abcd18e50af977c25eabee76a/modules/geo-layers/src/tile-layer/tile-layer.js#L139-L144

0reactions
supersonicclaycommented, Aug 12, 2020

The PR is now ready for review and works well I think.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found