Skip to content
Discussion options

You must be logged in to vote

If you just want to prototype it you could do something like this

maplibregl.addProtocol('my-protocol', (params, abortController) => {
  // get z x y from params.url
  // if z === 13, throw error
  // else get tile from pmtiles file or zxy endpoint
})

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@etienneJr
Comment options

@wipfli
Comment options

Answer selected by etienneJr
@etienneJr
Comment options

@etienneJr
Comment options

@wipfli
Comment options

@bdon
Comment options

bdon Aug 19, 2025
Maintainer

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