tileserver-gl
tileserver-gl copied to clipboard
Tileserver-gl endpoints | Maputnik compatibility
-
Clear description of the problem: The Tileserver-gl endpoint for
Glyphs
is not compatible with the maputnik editor, even if you use maputnik online which points to:https://api.maptiler.com/fonts/{fontstack}/{range}.pbf?key={key}
, you get different results when hosting thesame
style locally. To keep things consistent I wanted to run Tilesetver-gl locally and host the Glyphs. Locally you can't use the URL of Tileserver-glhtts://localhost:8080/fonts/{fontstack}/{start}-{end}.pbf
because maputnik will complain ofrange
key missing. -
Version of the TileServer GL software you have used Latest (4.4.0)
-
Version and name of the operating system you use or other details of your setup Ventura 13.1
-
Information about your used config / styles / vector tiles Styles generated from maputnik online editor.

https://github.com/maptiler/tileserver-gl/blob/bb0cd60e6493e093703f0ec94dfb65c3a526ef52/docs/endpoints.rst#styles https://github.com/maptiler/tileserver-gl/blob/a7af45ee3f61032c82b339174ddc9c31c0be2f8c/src/serve_font.js#L41
I am not familiar with the entire source code, but will it be possible to create an endpoint that will look the same as the MapTiler team has implemented?:
https://api.maptiler.com/fonts/{fontstack}/{range}.pbf
Endpoints I tried:
Data http://localhost:8080/styles/positron-gl-style.json http://localhost:8080/data/v3/{z}/{x}/{y}.pbf http://localhost:8080/data/v3.json
Glyphs / fonts . Pdf http://localhost:8080/styles/positron-gl-style/style.json http://localhost:8080/fonts/{fontstack}/{start}-{end}.pbf http://localhost:8080/fonts/{fontstack}/{range}.pbf http://localhost:8080/fonts.json http://localhost:8080/fonts/Metropolis Light/0-255.pbf
Sprites: http://localhost:8080/styles/positron-gl-style/[email protected] http://localhost:8080/styles/positron-gl-style/sprite.json
These 2 tools are the only left Opensource Alternative... And hope they will remain compatible and alive!