Skip to content
Discussion options

You must be logged in to vote

Hmm... I can't find an easy way to do it.
You can use addProtocol to override the fetch behavior and use abort controller to abort after a timeout, but it's very complicated.
Also all the logic around which tile to fetch, cache etc is internal, so I don't think you'll have an easy way to override it.
The following is the relevant method:

async function makeFetchRequest(requestParameters: RequestParameters, abortController: AbortController): Promise<GetResourceResponse<any>> {

Not sure I can't think of a good way to pass this information...
Feel free to open a PR if this feature is needed for your case.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fyuanz
Comment options

Answer selected by fyuanz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants