-
Unable to enter the "idle" listener due to prolonged loading ,can I set a short time to ignore tiles that are not loaded after this time? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hmm... I can't find an easy way to do it. maplibre-gl-js/src/util/ajax.ts Line 141 in 39003c9 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. |
Beta Was this translation helpful? Give feedback.
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:
maplibre-gl-js/src/util/ajax.ts
Line 141 in 39003c9
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.