tileserver-gl icon indicating copy to clipboard operation
tileserver-gl copied to clipboard

Tileserver-gl endpoints | Maputnik compatibility

Open enkicoma opened this issue 2 years ago • 46 comments

  • 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 the same 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-gl htts://localhost:8080/fonts/{fontstack}/{start}-{end}.pbf because maputnik will complain of range 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.

Screenshot 2023-01-13 at 18 52 40

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!

enkicoma avatar Jan 13 '23 19:01 enkicoma