From cb76823210059bf908969737ddc0cad0644cfe3b Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 12 Feb 2024 12:46:16 +0100 Subject: [PATCH] Chore: remove obsolete imports, generate schemas --- Docs/Schemas/DeleteConfigJson.schema.json | 12 +- Docs/Schemas/DeleteConfigJsonJSC.ts | 12 +- Docs/Schemas/LayerConfigJson.schema.json | 43 +- Docs/Schemas/LayerConfigJsonJSC.ts | 43 +- Docs/Schemas/LayoutConfigJson.schema.json | 49 +- Docs/Schemas/LayoutConfigJsonJSC.ts | 49 +- .../LineRenderingConfigJson.schema.json | 27 + Docs/Schemas/LineRenderingConfigJsonJSC.ts | 27 + Docs/Schemas/MappingConfigJson.schema.json | 2 +- Docs/Schemas/MappingConfigJsonJSC.ts | 2 +- ...tionableTagRenderingConfigJson.schema.json | 2 +- .../QuestionableTagRenderingConfigJsonJSC.ts | 2 +- Docs/Schemas/RewritableConfigJson.schema.json | 2 +- Docs/Schemas/RewritableConfigJsonJSC.ts | 2 +- .../ThemeConfig/Json/DeleteConfigJson.ts | 1 - .../Json/LineRenderingConfigJson.ts | 2 - src/assets/schemas/layerconfigmeta.json | 218 +++++++- src/assets/schemas/layoutconfigmeta.json | 510 ++++++++++++++++-- .../questionabletagrenderingconfigmeta.json | 11 +- 19 files changed, 942 insertions(+), 74 deletions(-) diff --git a/Docs/Schemas/DeleteConfigJson.schema.json b/Docs/Schemas/DeleteConfigJson.schema.json index b7bbec42aa..1398ab84f5 100644 --- a/Docs/Schemas/DeleteConfigJson.schema.json +++ b/Docs/Schemas/DeleteConfigJson.schema.json @@ -61,7 +61,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "definitions": { diff --git a/Docs/Schemas/DeleteConfigJsonJSC.ts b/Docs/Schemas/DeleteConfigJsonJSC.ts index afb24d2dd8..3a6f5e67cd 100644 --- a/Docs/Schemas/DeleteConfigJsonJSC.ts +++ b/Docs/Schemas/DeleteConfigJsonJSC.ts @@ -61,7 +61,17 @@ export default { }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "definitions": { diff --git a/Docs/Schemas/LayerConfigJson.schema.json b/Docs/Schemas/LayerConfigJson.schema.json index 71c2715815..97b11e22b5 100644 --- a/Docs/Schemas/LayerConfigJson.schema.json +++ b/Docs/Schemas/LayerConfigJson.schema.json @@ -376,7 +376,7 @@ ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { @@ -874,7 +874,7 @@ ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -1176,6 +1176,33 @@ "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } }, "additionalProperties": false @@ -1858,7 +1885,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false diff --git a/Docs/Schemas/LayerConfigJsonJSC.ts b/Docs/Schemas/LayerConfigJsonJSC.ts index 61102e21e4..be49c35b9c 100644 --- a/Docs/Schemas/LayerConfigJsonJSC.ts +++ b/Docs/Schemas/LayerConfigJsonJSC.ts @@ -376,7 +376,7 @@ export default { ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { @@ -865,7 +865,7 @@ export default { ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -1164,6 +1164,33 @@ export default { "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } } }, @@ -1841,7 +1868,17 @@ export default { }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } } }, diff --git a/Docs/Schemas/LayoutConfigJson.schema.json b/Docs/Schemas/LayoutConfigJson.schema.json index f3a5ee1617..c8df46021b 100644 --- a/Docs/Schemas/LayoutConfigJson.schema.json +++ b/Docs/Schemas/LayoutConfigJson.schema.json @@ -271,6 +271,10 @@ "description": "question: Should the 'notes' from OpenStreetMap be loaded and parsed for import helper notes?\nIf true, notes will be loaded and parsed. If a note is an import (as created by the import_helper.html-tool from mapcomplete),\nthese notes will be shown if a relevant layer is present.\n\nifunset: MapComplete default: do not load import notes for sideloaded themes but do load them for official themes\niftrue: Load notes and show import notes\niffalse: Do not load import notes\ngroup: advanced", "type": "boolean" }, + "enableTerrain": { + "description": "question: Should the map use elevation data to give a 3D-feel?\n\nThis is especially useful for hiking maps, skiing maps etc...\n\nfunset: MapComplete default: don't use terrain\niftrue: Use elevation and render 3D\niffalse: Do not use terrain\ngroup: advanced", + "type": "boolean" + }, "overpassUrl": { "description": "question: What overpass-api instance should be used for this layout?\n\nifunset: Use the default, builtin collection of overpass instances\ngroup: advanced", "type": "array", @@ -764,7 +768,7 @@ ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -1066,6 +1070,33 @@ "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } }, "additionalProperties": false @@ -1748,7 +1779,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false @@ -2230,7 +2271,7 @@ ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { @@ -2649,7 +2690,7 @@ ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { diff --git a/Docs/Schemas/LayoutConfigJsonJSC.ts b/Docs/Schemas/LayoutConfigJsonJSC.ts index 952ff3555a..53eee8aef2 100644 --- a/Docs/Schemas/LayoutConfigJsonJSC.ts +++ b/Docs/Schemas/LayoutConfigJsonJSC.ts @@ -271,6 +271,10 @@ export default { "description": "question: Should the 'notes' from OpenStreetMap be loaded and parsed for import helper notes?\nIf true, notes will be loaded and parsed. If a note is an import (as created by the import_helper.html-tool from mapcomplete),\nthese notes will be shown if a relevant layer is present.\n\nifunset: MapComplete default: do not load import notes for sideloaded themes but do load them for official themes\niftrue: Load notes and show import notes\niffalse: Do not load import notes\ngroup: advanced", "type": "boolean" }, + "enableTerrain": { + "description": "question: Should the map use elevation data to give a 3D-feel?\n\nThis is especially useful for hiking maps, skiing maps etc...\n\nfunset: MapComplete default: don't use terrain\niftrue: Use elevation and render 3D\niffalse: Do not use terrain\ngroup: advanced", + "type": "boolean" + }, "overpassUrl": { "description": "question: What overpass-api instance should be used for this layout?\n\nifunset: Use the default, builtin collection of overpass instances\ngroup: advanced", "type": "array", @@ -755,7 +759,7 @@ export default { ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -1054,6 +1058,33 @@ export default { "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } } }, @@ -1731,7 +1762,17 @@ export default { }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } } }, @@ -2208,7 +2249,7 @@ export default { ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { @@ -2626,7 +2667,7 @@ export default { ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { diff --git a/Docs/Schemas/LineRenderingConfigJson.schema.json b/Docs/Schemas/LineRenderingConfigJson.schema.json index f591081389..ba0c746f6b 100644 --- a/Docs/Schemas/LineRenderingConfigJson.schema.json +++ b/Docs/Schemas/LineRenderingConfigJson.schema.json @@ -63,6 +63,33 @@ "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } }, "definitions": { diff --git a/Docs/Schemas/LineRenderingConfigJsonJSC.ts b/Docs/Schemas/LineRenderingConfigJsonJSC.ts index a19933c433..cb3f97cb8c 100644 --- a/Docs/Schemas/LineRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/LineRenderingConfigJsonJSC.ts @@ -63,6 +63,33 @@ export default { "type": "number" } ] + }, + "imageAlongWay": { + "description": "question: What PNG-image should be shown along the way?\n\nifunset: no image is shown along the way\nsuggestions: [{if: \"./assets/png/oneway.png\", then: \"Show a oneway error\"}]\ntype: image", + "anyOf": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ] } }, "definitions": { diff --git a/Docs/Schemas/MappingConfigJson.schema.json b/Docs/Schemas/MappingConfigJson.schema.json index fd0711e639..931a2ed1ba 100644 --- a/Docs/Schemas/MappingConfigJson.schema.json +++ b/Docs/Schemas/MappingConfigJson.schema.json @@ -58,7 +58,7 @@ ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/Docs/Schemas/MappingConfigJsonJSC.ts b/Docs/Schemas/MappingConfigJsonJSC.ts index 5d17ec4af6..9c0562bf54 100644 --- a/Docs/Schemas/MappingConfigJsonJSC.ts +++ b/Docs/Schemas/MappingConfigJsonJSC.ts @@ -58,7 +58,7 @@ export default { ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json index b5552e84e6..a138ec6074 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json +++ b/Docs/Schemas/QuestionableTagRenderingConfigJson.schema.json @@ -681,7 +681,7 @@ ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts index 9628cd0a48..f49ce9df1c 100644 --- a/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts +++ b/Docs/Schemas/QuestionableTagRenderingConfigJsonJSC.ts @@ -672,7 +672,7 @@ export default { ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/Docs/Schemas/RewritableConfigJson.schema.json b/Docs/Schemas/RewritableConfigJson.schema.json index 2e8a5be15b..c0f490c2da 100644 --- a/Docs/Schemas/RewritableConfigJson.schema.json +++ b/Docs/Schemas/RewritableConfigJson.schema.json @@ -503,7 +503,7 @@ ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/Docs/Schemas/RewritableConfigJsonJSC.ts b/Docs/Schemas/RewritableConfigJsonJSC.ts index 543e15791d..9329f43caa 100644 --- a/Docs/Schemas/RewritableConfigJsonJSC.ts +++ b/Docs/Schemas/RewritableConfigJsonJSC.ts @@ -494,7 +494,7 @@ export default { ] }, "alsoShowIf": { - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags.", + "description": "question: In what other cases should this item be rendered?\n\nAlso show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!\n\nifunset: No other cases when this text is shown", "anyOf": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" diff --git a/src/Models/ThemeConfig/Json/DeleteConfigJson.ts b/src/Models/ThemeConfig/Json/DeleteConfigJson.ts index 3dcadd5917..07d247d028 100644 --- a/src/Models/ThemeConfig/Json/DeleteConfigJson.ts +++ b/src/Models/ThemeConfig/Json/DeleteConfigJson.ts @@ -1,5 +1,4 @@ import { TagConfigJson } from "./TagConfigJson" -import { UploadableTag } from "../../../Logic/Tags/TagUtils" export interface DeleteConfigJson { /*** diff --git a/src/Models/ThemeConfig/Json/LineRenderingConfigJson.ts b/src/Models/ThemeConfig/Json/LineRenderingConfigJson.ts index e7bbc86dda..fd75122afd 100644 --- a/src/Models/ThemeConfig/Json/LineRenderingConfigJson.ts +++ b/src/Models/ThemeConfig/Json/LineRenderingConfigJson.ts @@ -1,6 +1,4 @@ import { MinimalTagRenderingConfigJson } from "./TagRenderingConfigJson" -import { MappingConfigJson } from "./QuestionableTagRenderingConfigJson" -import { TagsFilter } from "../../../Logic/Tags/TagsFilter" import { TagConfigJson } from "./TagConfigJson" /** diff --git a/src/assets/schemas/layerconfigmeta.json b/src/assets/schemas/layerconfigmeta.json index e7c7245287..1148d72a33 100644 --- a/src/assets/schemas/layerconfigmeta.json +++ b/src/assets/schemas/layerconfigmeta.json @@ -1676,11 +1676,21 @@ "then": "pin", "icon": "pin" }, + { + "if": "value=bug", + "then": "bug", + "icon": "bug" + }, { "if": "value=square", "then": "square", "icon": "square" }, + { + "if": "value=square_rounded", + "then": "square_rounded", + "icon": "square_rounded" + }, { "if": "value=circle", "then": "circle", @@ -1816,6 +1826,11 @@ "then": "heart_outline", "icon": "heart_outline" }, + { + "if": "value=link", + "then": "link", + "icon": "link" + }, { "if": "value=confirm", "then": "confirm", @@ -9838,6 +9853,77 @@ "type": "string", "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" }, + { + "path": [ + "lineRendering", + "imageAlongWay" + ], + "required": false, + "hints": { + "typehint": "image", + "question": "What PNG-image should be shown along the way?", + "ifunset": "no image is shown along the way" + }, + "type": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ], + "description": "" + }, + { + "path": [ + "lineRendering", + "imageAlongWay", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + }, { "path": [ "passAllFeatures" @@ -9976,6 +10062,10 @@ "if": "value=advertising", "then": "advertising - We will complete data from advertising features with reference, operator and lit" }, + { + "if": "value=aerialway", + "then": "aerialway - Various forms of transport for passengers and goods that use wires, including cable cars, gondolas, chair lifts, drag lifts, and zip lines. " + }, { "if": "value=ambulancestation", "then": "ambulancestation - An ambulance station is an area for storage of ambulance vehicles, medical equipment, personal protective equipment, and other medical supplies." @@ -9988,6 +10078,10 @@ "if": "value=artwork", "then": "artwork - An open map of statues, busts, graffitis and other artwork all over the world" }, + { + "if": "value=assembly_point", + "then": "assembly_point - This layer contains assembly points and waiting areas where all employees, passengers or a large crowd assemble in case of an emergency." + }, { "if": "value=atm", "then": "atm - ATMs to withdraw money" @@ -10052,6 +10146,10 @@ "if": "value=birdhide", "then": "birdhide - A birdhide" }, + { + "if": "value=brothel", + "then": "brothel - An establishment specifically dedicated to prostitution. " + }, { "if": "value=cafe_pub", "then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions" @@ -10064,6 +10162,10 @@ "if": "value=charging_station", "then": "charging_station - A charging station" }, + { + "if": "value=cinema", + "then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US" + }, { "if": "value=climbing", "then": "climbing - A dummy layer which contains tagrenderings, shared among the climbing layers" @@ -10124,6 +10226,10 @@ "if": "value=direction", "then": "direction - This layer visualizes directions" }, + { + "if": "value=disaster_response", + "then": "disaster_response - This layer contains organizations that have the main objective to help the civil population during and after natural or anthropogenic disasters by working in the affected area." + }, { "if": "value=doctors", "then": "doctors - This layer shows doctor offices" @@ -10260,6 +10366,10 @@ "if": "value=last_click", "then": "last_click - This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up" }, + { + "if": "value=love_hotel", + "then": "love_hotel - A love hotel is a type of short-stay hotel found around the world operated primarily for the purpose of allowing guests privacy for sexual activities" + }, { "if": "value=map", "then": "map - A map, meant for tourists which is permanently installed in the public space" @@ -10280,6 +10390,10 @@ "if": "value=memorial", "then": "memorial - Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on" }, + { + "if": "value=mountain_rescue", + "then": "mountain_rescue - A building where first aid responders store material and might be on watch" + }, { "if": "value=named_streets", "then": "named_streets - Hidden layer with all streets which have a name. Useful to detect addresses" @@ -10400,6 +10514,10 @@ "if": "value=shower", "then": "shower - A layer showing (public) showers" }, + { + "if": "value=ski_piste", + "then": "ski_piste - Ski and snowboard pistes" + }, { "if": "value=slow_roads", "then": "slow_roads - All carfree roads" @@ -10436,6 +10554,10 @@ "if": "value=street_lamps", "then": "street_lamps - A layer showing street lights" }, + { + "if": "value=stripclub", + "then": "stripclub - A venue where erotic dance, striptease, or lap dances are performed commercially. " + }, { "if": "value=surveillance_camera", "then": "surveillance_camera - This layer shows surveillance cameras and allows a contributor to update information and add new cameras" @@ -10476,6 +10598,10 @@ "if": "value=tree_node", "then": "tree_node - A layer showing trees" }, + { + "if": "value=trolley_bay", + "then": "trolley_bay - Find trolley bays for shopping trolleys." + }, { "if": "value=unit", "then": "unit - Library layer with all common units. Units can _only_ be imported from this file." @@ -11064,7 +11190,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -11076,7 +11205,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -11505,6 +11634,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -12314,7 +12447,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -12326,7 +12462,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -12770,6 +12906,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -13612,7 +13752,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -13624,7 +13767,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -14068,6 +14211,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -14911,7 +15058,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -14923,7 +15073,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -15382,6 +15532,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -16239,7 +16393,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -16251,7 +16408,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -16695,6 +16852,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -17538,7 +17699,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -17550,7 +17714,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -18009,6 +18173,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -18868,7 +19036,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false @@ -19087,7 +19265,17 @@ "iffalse": "Show the default delete reasons", "ifunset": "Show the default delete reasons (default behaviour)" }, - "type": "boolean", + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ], "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping" }, { @@ -19163,7 +19351,7 @@ "group": "editing", "question": "Should the contributor be able to split ways using this layer?", "iftrue": "enable the 'split-roads'-component", - "iffalse": "don't enable the split-roads componenet", + "iffalse": "don't enable the split-roads component", "ifunset": "don't enable the split-roads component" }, "type": "boolean", diff --git a/src/assets/schemas/layoutconfigmeta.json b/src/assets/schemas/layoutconfigmeta.json index 53e2252da6..682303ca9e 100644 --- a/src/assets/schemas/layoutconfigmeta.json +++ b/src/assets/schemas/layoutconfigmeta.json @@ -332,6 +332,10 @@ "if": "value=advertising", "then": "advertising - We will complete data from advertising features with reference, operator and lit" }, + { + "if": "value=aerialway", + "then": "aerialway - Various forms of transport for passengers and goods that use wires, including cable cars, gondolas, chair lifts, drag lifts, and zip lines. " + }, { "if": "value=ambulancestation", "then": "ambulancestation - An ambulance station is an area for storage of ambulance vehicles, medical equipment, personal protective equipment, and other medical supplies." @@ -344,6 +348,10 @@ "if": "value=artwork", "then": "artwork - An open map of statues, busts, graffitis and other artwork all over the world" }, + { + "if": "value=assembly_point", + "then": "assembly_point - This layer contains assembly points and waiting areas where all employees, passengers or a large crowd assemble in case of an emergency." + }, { "if": "value=atm", "then": "atm - ATMs to withdraw money" @@ -408,6 +416,10 @@ "if": "value=birdhide", "then": "birdhide - A birdhide" }, + { + "if": "value=brothel", + "then": "brothel - An establishment specifically dedicated to prostitution. " + }, { "if": "value=cafe_pub", "then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions" @@ -420,6 +432,10 @@ "if": "value=charging_station", "then": "charging_station - A charging station" }, + { + "if": "value=cinema", + "then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US" + }, { "if": "value=climbing", "then": "climbing - A dummy layer which contains tagrenderings, shared among the climbing layers" @@ -480,6 +496,10 @@ "if": "value=direction", "then": "direction - This layer visualizes directions" }, + { + "if": "value=disaster_response", + "then": "disaster_response - This layer contains organizations that have the main objective to help the civil population during and after natural or anthropogenic disasters by working in the affected area." + }, { "if": "value=doctors", "then": "doctors - This layer shows doctor offices" @@ -616,6 +636,10 @@ "if": "value=last_click", "then": "last_click - This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up" }, + { + "if": "value=love_hotel", + "then": "love_hotel - A love hotel is a type of short-stay hotel found around the world operated primarily for the purpose of allowing guests privacy for sexual activities" + }, { "if": "value=map", "then": "map - A map, meant for tourists which is permanently installed in the public space" @@ -636,6 +660,10 @@ "if": "value=memorial", "then": "memorial - Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on" }, + { + "if": "value=mountain_rescue", + "then": "mountain_rescue - A building where first aid responders store material and might be on watch" + }, { "if": "value=named_streets", "then": "named_streets - Hidden layer with all streets which have a name. Useful to detect addresses" @@ -756,6 +784,10 @@ "if": "value=shower", "then": "shower - A layer showing (public) showers" }, + { + "if": "value=ski_piste", + "then": "ski_piste - Ski and snowboard pistes" + }, { "if": "value=slow_roads", "then": "slow_roads - All carfree roads" @@ -792,6 +824,10 @@ "if": "value=street_lamps", "then": "street_lamps - A layer showing street lights" }, + { + "if": "value=stripclub", + "then": "stripclub - A venue where erotic dance, striptease, or lap dances are performed commercially. " + }, { "if": "value=surveillance_camera", "then": "surveillance_camera - This layer shows surveillance cameras and allows a contributor to update information and add new cameras" @@ -832,6 +868,10 @@ "if": "value=tree_node", "then": "tree_node - A layer showing trees" }, + { + "if": "value=trolley_bay", + "then": "trolley_bay - Find trolley bays for shopping trolleys." + }, { "if": "value=unit", "then": "unit - Library layer with all common units. Units can _only_ be imported from this file." @@ -1694,7 +1734,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false @@ -1727,7 +1777,7 @@ ] }, "allowSplit": { - "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads componenet\nifunset: don't enable the split-roads component\ngroup: editing", + "description": "If set, a 'split this way' button is shown on objects rendered as LineStrings, e.g. highways.\n\nIf the way is part of a relation, MapComplete will attempt to update this relation as well\nquestion: Should the contributor be able to split ways using this layer?\niftrue: enable the 'split-roads'-component\niffalse: don't enable the split-roads component\nifunset: don't enable the split-roads component\ngroup: editing", "type": "boolean" }, "units": { @@ -3544,11 +3594,21 @@ "then": "pin", "icon": "pin" }, + { + "if": "value=bug", + "then": "bug", + "icon": "bug" + }, { "if": "value=square", "then": "square", "icon": "square" }, + { + "if": "value=square_rounded", + "then": "square_rounded", + "icon": "square_rounded" + }, { "if": "value=circle", "then": "circle", @@ -3684,6 +3744,11 @@ "then": "heart_outline", "icon": "heart_outline" }, + { + "if": "value=link", + "then": "link", + "icon": "link" + }, { "if": "value=confirm", "then": "confirm", @@ -11960,6 +12025,79 @@ "type": "string", "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" }, + { + "path": [ + "layers", + "lineRendering", + "imageAlongWay" + ], + "required": false, + "hints": { + "typehint": "image", + "question": "What PNG-image should be shown along the way?", + "ifunset": "no image is shown along the way" + }, + "type": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ], + "description": "" + }, + { + "path": [ + "layers", + "lineRendering", + "imageAlongWay", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + }, { "path": [ "layers", @@ -12107,6 +12245,10 @@ "if": "value=advertising", "then": "advertising - We will complete data from advertising features with reference, operator and lit" }, + { + "if": "value=aerialway", + "then": "aerialway - Various forms of transport for passengers and goods that use wires, including cable cars, gondolas, chair lifts, drag lifts, and zip lines. " + }, { "if": "value=ambulancestation", "then": "ambulancestation - An ambulance station is an area for storage of ambulance vehicles, medical equipment, personal protective equipment, and other medical supplies." @@ -12119,6 +12261,10 @@ "if": "value=artwork", "then": "artwork - An open map of statues, busts, graffitis and other artwork all over the world" }, + { + "if": "value=assembly_point", + "then": "assembly_point - This layer contains assembly points and waiting areas where all employees, passengers or a large crowd assemble in case of an emergency." + }, { "if": "value=atm", "then": "atm - ATMs to withdraw money" @@ -12183,6 +12329,10 @@ "if": "value=birdhide", "then": "birdhide - A birdhide" }, + { + "if": "value=brothel", + "then": "brothel - An establishment specifically dedicated to prostitution. " + }, { "if": "value=cafe_pub", "then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions" @@ -12195,6 +12345,10 @@ "if": "value=charging_station", "then": "charging_station - A charging station" }, + { + "if": "value=cinema", + "then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US" + }, { "if": "value=climbing", "then": "climbing - A dummy layer which contains tagrenderings, shared among the climbing layers" @@ -12255,6 +12409,10 @@ "if": "value=direction", "then": "direction - This layer visualizes directions" }, + { + "if": "value=disaster_response", + "then": "disaster_response - This layer contains organizations that have the main objective to help the civil population during and after natural or anthropogenic disasters by working in the affected area." + }, { "if": "value=doctors", "then": "doctors - This layer shows doctor offices" @@ -12391,6 +12549,10 @@ "if": "value=last_click", "then": "last_click - This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up" }, + { + "if": "value=love_hotel", + "then": "love_hotel - A love hotel is a type of short-stay hotel found around the world operated primarily for the purpose of allowing guests privacy for sexual activities" + }, { "if": "value=map", "then": "map - A map, meant for tourists which is permanently installed in the public space" @@ -12411,6 +12573,10 @@ "if": "value=memorial", "then": "memorial - Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on" }, + { + "if": "value=mountain_rescue", + "then": "mountain_rescue - A building where first aid responders store material and might be on watch" + }, { "if": "value=named_streets", "then": "named_streets - Hidden layer with all streets which have a name. Useful to detect addresses" @@ -12531,6 +12697,10 @@ "if": "value=shower", "then": "shower - A layer showing (public) showers" }, + { + "if": "value=ski_piste", + "then": "ski_piste - Ski and snowboard pistes" + }, { "if": "value=slow_roads", "then": "slow_roads - All carfree roads" @@ -12567,6 +12737,10 @@ "if": "value=street_lamps", "then": "street_lamps - A layer showing street lights" }, + { + "if": "value=stripclub", + "then": "stripclub - A venue where erotic dance, striptease, or lap dances are performed commercially. " + }, { "if": "value=surveillance_camera", "then": "surveillance_camera - This layer shows surveillance cameras and allows a contributor to update information and add new cameras" @@ -12607,6 +12781,10 @@ "if": "value=tree_node", "then": "tree_node - A layer showing trees" }, + { + "if": "value=trolley_bay", + "then": "trolley_bay - Find trolley bays for shopping trolleys." + }, { "if": "value=unit", "then": "unit - Library layer with all common units. Units can _only_ be imported from this file." @@ -13207,7 +13385,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -13219,7 +13400,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -13663,6 +13844,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -14506,7 +14691,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -14518,7 +14706,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -14977,6 +15165,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -15854,7 +16046,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -15866,7 +16061,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -16325,6 +16520,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -17202,7 +17401,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -17214,7 +17416,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -17688,6 +17890,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -18579,7 +18785,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -18591,7 +18800,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -19050,6 +19259,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -19927,7 +20140,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -19939,7 +20155,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -20413,6 +20629,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -21305,7 +21525,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false @@ -21535,7 +21765,17 @@ "iffalse": "Show the default delete reasons", "ifunset": "Show the default delete reasons (default behaviour)" }, - "type": "boolean", + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ], "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping" }, { @@ -21615,7 +21855,7 @@ "group": "editing", "question": "Should the contributor be able to split ways using this layer?", "iftrue": "enable the 'split-roads'-component", - "iffalse": "don't enable the split-roads componenet", + "iffalse": "don't enable the split-roads component", "ifunset": "don't enable the split-roads component" }, "type": "boolean", @@ -23655,11 +23895,21 @@ "then": "pin", "icon": "pin" }, + { + "if": "value=bug", + "then": "bug", + "icon": "bug" + }, { "if": "value=square", "then": "square", "icon": "square" }, + { + "if": "value=square_rounded", + "then": "square_rounded", + "icon": "square_rounded" + }, { "if": "value=circle", "then": "circle", @@ -23795,6 +24045,11 @@ "then": "heart_outline", "icon": "heart_outline" }, + { + "if": "value=link", + "then": "link", + "icon": "link" + }, { "if": "value=confirm", "then": "confirm", @@ -32325,6 +32580,81 @@ "type": "string", "description": "If the condition `if` is met, the text `then` will be rendered.\nIf not known yet, the user will be presented with `then` as an option" }, + { + "path": [ + "layers", + "override", + "lineRendering", + "imageAlongWay" + ], + "required": false, + "hints": { + "typehint": "image", + "question": "What PNG-image should be shown along the way?", + "ifunset": "no image is shown along the way" + }, + "type": [ + { + "type": "array", + "items": { + "type": "object", + "properties": { + "if": { + "$ref": "#/definitions/TagConfigJson", + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation\n\ntype: tag" + }, + "then": { + "type": "string" + } + }, + "required": [ + "if", + "then" + ] + } + }, + { + "type": "string" + } + ], + "description": "" + }, + { + "path": [ + "layers", + "override", + "lineRendering", + "imageAlongWay", + "if" + ], + "required": true, + "hints": { + "typehint": "tag" + }, + "type": [ + { + "$ref": "#/definitions/{and:TagConfigJson[];}" + }, + { + "type": "object", + "properties": { + "or": { + "type": "array", + "items": { + "$ref": "#/definitions/TagConfigJson" + } + } + }, + "required": [ + "or" + ] + }, + { + "type": "string" + } + ], + "description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation" + }, { "path": [ "layers", @@ -32481,6 +32811,10 @@ "if": "value=advertising", "then": "advertising - We will complete data from advertising features with reference, operator and lit" }, + { + "if": "value=aerialway", + "then": "aerialway - Various forms of transport for passengers and goods that use wires, including cable cars, gondolas, chair lifts, drag lifts, and zip lines. " + }, { "if": "value=ambulancestation", "then": "ambulancestation - An ambulance station is an area for storage of ambulance vehicles, medical equipment, personal protective equipment, and other medical supplies." @@ -32493,6 +32827,10 @@ "if": "value=artwork", "then": "artwork - An open map of statues, busts, graffitis and other artwork all over the world" }, + { + "if": "value=assembly_point", + "then": "assembly_point - This layer contains assembly points and waiting areas where all employees, passengers or a large crowd assemble in case of an emergency." + }, { "if": "value=atm", "then": "atm - ATMs to withdraw money" @@ -32557,6 +32895,10 @@ "if": "value=birdhide", "then": "birdhide - A birdhide" }, + { + "if": "value=brothel", + "then": "brothel - An establishment specifically dedicated to prostitution. " + }, { "if": "value=cafe_pub", "then": "cafe_pub - A layer showing cafés and pubs where one can gather around a drink. The layer asks for some relevant questions" @@ -32569,6 +32911,10 @@ "if": "value=charging_station", "then": "charging_station - A charging station" }, + { + "if": "value=cinema", + "then": "cinema - A place showing movies (films), generally open to the public for a fee. Commonly referred to as a movie theater in the US" + }, { "if": "value=climbing", "then": "climbing - A dummy layer which contains tagrenderings, shared among the climbing layers" @@ -32629,6 +32975,10 @@ "if": "value=direction", "then": "direction - This layer visualizes directions" }, + { + "if": "value=disaster_response", + "then": "disaster_response - This layer contains organizations that have the main objective to help the civil population during and after natural or anthropogenic disasters by working in the affected area." + }, { "if": "value=doctors", "then": "doctors - This layer shows doctor offices" @@ -32765,6 +33115,10 @@ "if": "value=last_click", "then": "last_click - This layer defines how to render the 'last click'-location. By default, it will show a marker with the possibility to add a new point (if there are some presets) and/or to add a new note (if the 'note' layer attribute is set). If none are possible, this layer won't show up" }, + { + "if": "value=love_hotel", + "then": "love_hotel - A love hotel is a type of short-stay hotel found around the world operated primarily for the purpose of allowing guests privacy for sexual activities" + }, { "if": "value=map", "then": "map - A map, meant for tourists which is permanently installed in the public space" @@ -32785,6 +33139,10 @@ "if": "value=memorial", "then": "memorial - Layer showing memorial plaques, based upon a unofficial theme. Can be expanded to have multiple types of memorials later on" }, + { + "if": "value=mountain_rescue", + "then": "mountain_rescue - A building where first aid responders store material and might be on watch" + }, { "if": "value=named_streets", "then": "named_streets - Hidden layer with all streets which have a name. Useful to detect addresses" @@ -32905,6 +33263,10 @@ "if": "value=shower", "then": "shower - A layer showing (public) showers" }, + { + "if": "value=ski_piste", + "then": "ski_piste - Ski and snowboard pistes" + }, { "if": "value=slow_roads", "then": "slow_roads - All carfree roads" @@ -32941,6 +33303,10 @@ "if": "value=street_lamps", "then": "street_lamps - A layer showing street lights" }, + { + "if": "value=stripclub", + "then": "stripclub - A venue where erotic dance, striptease, or lap dances are performed commercially. " + }, { "if": "value=surveillance_camera", "then": "surveillance_camera - This layer shows surveillance cameras and allows a contributor to update information and add new cameras" @@ -32981,6 +33347,10 @@ "if": "value=tree_node", "then": "tree_node - A layer showing trees" }, + { + "if": "value=trolley_bay", + "then": "trolley_bay - Find trolley bays for shopping trolleys." + }, { "if": "value=unit", "then": "unit - Library layer with all common units. Units can _only_ be imported from this file." @@ -33593,7 +33963,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -33605,7 +33978,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -34064,6 +34437,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -34941,7 +35318,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -34953,7 +35333,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -35427,6 +35807,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -36339,7 +36723,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -36351,7 +36738,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -36825,6 +37212,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -37736,7 +38127,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -37748,7 +38142,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -38237,6 +38631,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -39162,7 +39560,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -39174,7 +39575,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -39648,6 +40049,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -40559,7 +40964,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -40571,7 +40979,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -41060,6 +41468,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] }, @@ -41985,7 +42397,17 @@ }, "omitDefaultDeleteReasons": { "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping\n\nquestion: Should the default delete reasons be hidden?\niftrue: Hide the default delete reasons\niffalse: Show the default delete reasons\nifunset: Show the default delete reasons (default behaviour)", - "type": "boolean" + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ] } }, "additionalProperties": false @@ -42226,7 +42648,17 @@ "iffalse": "Show the default delete reasons", "ifunset": "Show the default delete reasons (default behaviour)" }, - "type": "boolean", + "type": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "boolean" + } + ], "description": "Set this flag if the default delete reasons should be omitted from the dialog.\nThis requires at least one extraDeleteReason or nonDeleteMapping" }, { @@ -42310,7 +42742,7 @@ "group": "editing", "question": "Should the contributor be able to split ways using this layer?", "iftrue": "enable the 'split-roads'-component", - "iffalse": "don't enable the split-roads componenet", + "iffalse": "don't enable the split-roads component", "ifunset": "don't enable the split-roads component" }, "type": "boolean", @@ -42850,6 +43282,20 @@ "type": "boolean", "description": "If true, notes will be loaded and parsed. If a note is an import (as created by the import_helper.html-tool from mapcomplete),\nthese notes will be shown if a relevant layer is present." }, + { + "path": [ + "enableTerrain" + ], + "required": false, + "hints": { + "group": "advanced", + "question": "Should the map use elevation data to give a 3D-feel?", + "iftrue": "Use elevation and render 3D", + "iffalse": "Do not use terrain" + }, + "type": "boolean", + "description": "This is especially useful for hiking maps, skiing maps etc...\nfunset: MapComplete default: don't use terrain" + }, { "path": [ "overpassUrl" diff --git a/src/assets/schemas/questionabletagrenderingconfigmeta.json b/src/assets/schemas/questionabletagrenderingconfigmeta.json index a1e0909560..e2e32759a1 100644 --- a/src/assets/schemas/questionabletagrenderingconfigmeta.json +++ b/src/assets/schemas/questionabletagrenderingconfigmeta.json @@ -231,7 +231,10 @@ "alsoShowIf" ], "required": false, - "hints": {}, + "hints": { + "question": "In what other cases should this item be rendered?", + "ifunset": "No other cases when this text is shown" + }, "type": [ { "$ref": "#/definitions/{and:TagConfigJson[];}" @@ -243,7 +246,7 @@ "type": "string" } ], - "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags." + "description": "Also show this 'then'-option if the feature matches these tags.\nIdeal for outdated tags or default assumptions. The tags from this options will not be set if the option is chosen!" }, { "path": [ @@ -657,6 +660,10 @@ { "if": "value=slope", "then": "slope Validates that the slope is a valid number.The accompanying input element uses the gyroscope and the compass to determine the correct incline. The sign of the incline will be set automatically. The bearing of the way is compared to the bearing of the compass, as such, the device knows if it is measuring in the forward or backward direction." + }, + { + "if": "value=velopark", + "then": "velopark A custom element to allow copy-pasting velopark-pages" } ] },