maplibre / martin

Blazing fast and lightweight PostGIS, MBtiles and PMtiles tile server, tile generation, and mbtiles tooling.
https://martin.maplibre.org
Apache License 2.0
2.33k stars 215 forks source link

Explicit layer_id ignored in tile.json #1472

Closed josch0 closed 1 month ago

josch0 commented 3 months ago

https://github.com/maplibre/martin/blob/c000fd950151e119ae51e5b7777380e89485f641/martin/src/pg/config_table.rs#L81-L106

Shouldn't the “layer_id” (if available) be used in line 96 and not the “source_id”?

I have explicitly set a “layer_id” in my config.yaml, which is also correctly present in the tiles itself. But in the tile.json is the “source_id”.

There are therefore contradictory entries.

MapLibre displays the layer, but at the same time complains that the layer does not exist.

image image image