Skip to content

Having trouble writing a working addProtocol for a raster layer #4480

Closed Answered by HarelM
jondoesntgit asked this question in Q&A
Discussion options

You must be logged in to vote

the second parameter is now an abortController.
Simply change the addProtocol method to return a promise with byteArray.
Check out the example in the documentation:
https://maplibre.org/maplibre-gl-js/docs/API/functions/addProtocol/

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jondoesntgit
Comment options

@acalcutt
Comment options

@HarelM
Comment options

Answer selected by jondoesntgit
@jondoesntgit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #4475 on July 31, 2024 14:21.