forked from MapComplete/MapComplete
UPdate of the schemas
This commit is contained in:
parent
5bfcfa8536
commit
3785d51468
16 changed files with 387 additions and 138 deletions
|
@ -205,6 +205,7 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"osmTags": {
|
||||
"description": "Every source must set which tags have to be present in order to load the given layer.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/AndOrTagConfigJson"
|
||||
|
@ -214,8 +215,9 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"overpassScript": {
|
||||
"type": "string"
|
||||
"maxCacheAge": {
|
||||
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
@ -225,9 +227,8 @@
|
|||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maxCacheAge": {
|
||||
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
||||
"type": "number"
|
||||
"overpassScript": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -239,6 +240,7 @@
|
|||
"type": "object",
|
||||
"properties": {
|
||||
"osmTags": {
|
||||
"description": "Every source must set which tags have to be present in order to load the given layer.",
|
||||
"anyOf": [
|
||||
{
|
||||
"$ref": "#/definitions/AndOrTagConfigJson"
|
||||
|
@ -248,32 +250,42 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"geoJson": {
|
||||
"type": "string"
|
||||
},
|
||||
"geoJsonZoomLevel": {
|
||||
"maxCacheAge": {
|
||||
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
||||
"type": "number"
|
||||
},
|
||||
"isOsmCache": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"mercatorCrs": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"geoJson",
|
||||
"osmTags"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"maxCacheAge": {
|
||||
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
||||
"geoJson": {
|
||||
"description": "The actual source of the data to load, if loaded via geojson.\n\n# A single geojson-file\nsource: {geoJson: \"https://my.source.net/some-geo-data.geojson\"}\n fetches a geojson from a third party source\n\n# A tiled geojson source\nsource: {geoJson: \"https://my.source.net/some-tile-geojson-{layer}-{z}-{x}-{y}.geojson\", geoJsonZoomLevel: 14}\n to use a tiled geojson source. The web server must offer multiple geojsons. {z}, {x} and {y} are substituted by the location; {layer} is substituted with the id of the loaded layer\n\nSome API's use a BBOX instead of a tile, this can be used by specifying {y_min}, {y_max}, {x_min} and {x_max}",
|
||||
"type": "string"
|
||||
},
|
||||
"geoJsonZoomLevel": {
|
||||
"description": "To load a tiled geojson layer, set the zoomlevel of the tiles",
|
||||
"type": "number"
|
||||
},
|
||||
"isOsmCache": {
|
||||
"description": "Indicates that the upstream geojson data is OSM-derived.\nUseful for e.g. merging or for scripts generating this cache",
|
||||
"type": "boolean"
|
||||
},
|
||||
"mercatorCrs": {
|
||||
"description": "Some API's use a mercator-projection (EPSG:900913) instead of WGS84. Set the flag `mercatorCrs: true` in the source for this",
|
||||
"type": "boolean"
|
||||
},
|
||||
"idKey": {
|
||||
"description": "Some API's have an id-field, but give it a different name.\nSetting this key will rename this field into 'id'",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"geoJson"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -328,10 +340,17 @@
|
|||
"path": [
|
||||
"layers",
|
||||
"isShown",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"isShown",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -589,10 +608,17 @@
|
|||
"path": [
|
||||
"layers",
|
||||
"title",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"title",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -843,10 +869,17 @@
|
|||
"path": [
|
||||
"layers",
|
||||
"titleIcons",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"titleIcons",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -1098,10 +1131,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"icon",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"icon",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -1369,10 +1410,19 @@
|
|||
"mapRendering",
|
||||
"iconBadges",
|
||||
"then",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"iconBadges",
|
||||
"then",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -1642,10 +1692,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"iconSize",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"iconSize",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -1898,10 +1956,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"rotation",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"rotation",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -2154,10 +2220,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"label",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"label",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -2417,10 +2491,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"color",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"color",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -2676,10 +2758,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"width",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"width",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -2932,10 +3022,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"dashArray",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"dashArray",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -3188,10 +3286,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"lineCap",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"lineCap",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -3448,10 +3554,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"fill",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"fill",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -3704,10 +3818,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"fillColor",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"fillColor",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -3960,10 +4082,18 @@
|
|||
"layers",
|
||||
"mapRendering",
|
||||
"offset",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"mapRendering",
|
||||
"offset",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -4350,10 +4480,17 @@
|
|||
"path": [
|
||||
"layers",
|
||||
"tagRenderings",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"tagRenderings",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -4574,10 +4711,18 @@
|
|||
"layers",
|
||||
"tagRenderings",
|
||||
"renderings",
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
"tagRenderings",
|
||||
"renderings",
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"layers",
|
||||
|
@ -5120,9 +5265,6 @@
|
|||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
@ -23,10 +23,15 @@
|
|||
},
|
||||
{
|
||||
"path": [
|
||||
"question"
|
||||
"render"
|
||||
],
|
||||
"typeHint": "rendered"
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"question"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": [
|
||||
"condition"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue