mirror of
https://github.com/maplibre/martin.git
synced 2024-12-26 00:12:46 +03:00
e92722708f
* 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
35 lines
584 B
JSON
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"
|
|
}
|