Brandon Liu

Results 552 comments of Brandon Liu

pmtiles.io now supports TileJSON too, e.g.: https://pmtiles.io/#url=https%3A%2F%2Fvector.openstreetmap.org%2Fshortbread_v1%2Ftilejson.json&map=2.99/40.54/-6.93

You can initialize a `FetchSource` with `CustomHeaders`: https://protomaps.github.io/PMTiles/typedoc/classes/FetchSource.html

See this example: https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre.html#L26 You can then reference it in a style via the same Url and it will resolve to the same instance `new pmtiles.PMTiles(fetchSource)`

> built-in maplibre transformRequest transformRequest does not apply to custom protocols. > If pmtiles can use custom headers why noot just use the headers and create a fetch source internally...

> using the existing headers that's sent along with the request I don't know what this refers to?

Updated the TypeDoc here: https://pmtiles.io/typedoc/classes/FetchSource.html https://pmtiles.io/typedoc/classes/Protocol.html > But with this method I have to do this with all the pmtile urls I want to add. Can you accomplish this using...

Custom headers example: https://github.com/protomaps/PMTiles/blob/main/js/examples/maplibre_headers.html

Here is an example using the `pmtiles.hpp` C++ header to write an archive: https://github.com/felt/tippecanoe/blob/main/pmtiles_file.cpp#L264 > lancing over the standard, I think the format is basically a single file with a...

Thanks, this looks like a good starting point. The two vital features needed are 1) the azure function needs to be able to authenticate with a private Blob Storage bucket...

@tengl the preference is for the authentication between Azure Functions and Blob Storage to be role-based without needing to specify a hardcoded key/secret. in Cloudflare this is done via Workers...