martin/tests/expected/auto/mb_mvt.json
Yuri Astrakhan e92722708f
PG TileJSON changes, add vector_layers (#584)
* make tilejson's `name` be the same as the ID of the source (even if
aliased)
* `/catalog` will always show ID, but now it will hide the `name` if it
is the same as the `id`
* make `description` be the longer version, e.g. `public.table.column`
format - not guaranteed to be stable
* make `vector_layers` have the fields auto-discovered in the PG table
* preserve the order of the serialized json fields

Fixes #583
2023-02-22 16:25:48 +00:00

35 lines
584 B
JSON

{
"tilejson": "3.0.0",
"tiles": [
"http://localhost:3111/world_cities/{z}/{x}/{y}"
],
"vector_layers": [
{
"id": "cities",
"fields": {
"name": "String"
},
"description": "",
"maxzoom": 6,
"minzoom": 0
}
],
"bounds": [
-123.12359,
-37.818085,
174.763027,
59.352706
],
"center": [
-75.9375,
38.788894,
6
],
"description": "Major cities from Natural Earth data",
"maxzoom": 6,
"minzoom": 0,
"name": "Major cities from Natural Earth data",
"version": "2",
"format": "pbf"
}