Regenerate schema files

This commit is contained in:
Pieter Vander Vennet 2022-01-26 21:48:02 +01:00
parent e547654b2e
commit 0505a77606
14 changed files with 396 additions and 165 deletions

View file

@ -134,17 +134,27 @@
},
"clustering": {
"description": "If defined, data will be clustered.\nDefaults to {maxZoom: 16, minNeeded: 500}",
"type": "object",
"properties": {
"maxZoom": {
"description": "All zoom levels above 'maxzoom' are not clustered anymore.\nDefaults to 18",
"type": "number"
"anyOf": [
{
"type": "object",
"properties": {
"maxZoom": {
"description": "All zoom levels above 'maxzoom' are not clustered anymore.\nDefaults to 18",
"type": "number"
},
"minNeededElements": {
"description": "The number of elements per tile needed to start clustering\nIf clustering is defined, defaults to 25",
"type": "number"
}
}
},
"minNeededElements": {
"description": "The number of elements per tile needed to start clustering\nIf clustering is defined, defaults to 25",
"type": "number"
{
"enum": [
false
],
"type": "boolean"
}
}
]
},
"customCss": {
"description": "The URL of a custom CSS stylesheet to modify the layout",
@ -483,12 +493,6 @@
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint",
"type": "array",
"items": {
"enum": [
"centroid",
"end",
"point",
"start"
],
"type": "string"
}
},
@ -597,7 +601,10 @@
"$ref": "#/definitions/TagRenderingConfigJson"
},
{
"type": "string"
"type": [
"string",
"number"
]
}
]
},
@ -686,6 +693,23 @@
"type": "string"
}
]
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"name"
]
}
}
},
"required": [
@ -937,7 +961,7 @@
]
},
"calculatedTags": {
"description": "A list of extra tags to calculate, specified as \"keyToAssignTo=javascript-expression\".\nThere are a few extra functions available. Refer to <a>Docs/CalculatedTags.md</a> for more information\nThe functions will be run in order, e.g.\n[\n \"_max_overlap_m2=Math.max(...feat.overlapsWith(\"someOtherLayer\").map(o => o.overlap))\n \"_max_overlap_ratio=Number(feat._max_overlap_m2)/feat.area\n]",
"description": "A list of extra tags to calculate, specified as \"keyToAssignTo=javascript-expression\".\nThere are a few extra functions available. Refer to <a>Docs/CalculatedTags.md</a> for more information\nThe functions will be run in order, e.g.\n[\n \"_max_overlap_m2=Math.max(...feat.overlapsWith(\"someOtherLayer\").map(o => o.overlap))\n \"_max_overlap_ratio=Number(feat._max_overlap_m2)/feat.area\n]\n\nThe specified tags are evaluated lazily. E.g. if a calculated tag is only used in the popup (e.g. the number of nearby features),\nthe expensive calculation will only be performed then for that feature. This avoids clogging up the contributors PC when all features are loaded.\n\nIf a tag has to be evaluated strictly, use ':=' instead:\n\n[\n\"_some_key:=some_javascript_expression\"\n]",
"type": "array",
"items": {
"type": "string"
@ -975,31 +999,55 @@
]
},
"titleIcons": {
"description": "Small icons shown next to the title.\nIf not specified, the OsmLink and wikipedia links will be used by default.\nUse an empty array to hide them.\nNote that \"defaults\" will insert all the default titleIcons",
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/TagRenderingConfigJson"
},
{
"type": "string"
"description": "Small icons shown next to the title.\nIf not specified, the OsmLink and wikipedia links will be used by default.\nUse an empty array to hide them.\nNote that \"defaults\" will insert all the default titleIcons (which are added automatically)",
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/TagRenderingConfigJson"
},
{
"type": "string"
}
]
}
]
}
},
{
"type": "array",
"items": [
{
"type": "string",
"enum": [
"defaults"
]
}
],
"minItems": 1,
"maxItems": 1
}
]
},
"mapRendering": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/default_3"
},
{
"$ref": "#/definitions/default_4"
"anyOf": [
{
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/default_3"
},
{
"$ref": "#/definitions/default_4"
}
]
}
]
}
},
{
"type": "null"
}
]
},
"passAllFeatures": {
"description": "If set, this layer will pass all the features it receives onto the next layer.\nThis is ideal for decoration, e.g. directionss on cameras",