39326 lines
No EOL
1.2 MiB
39326 lines
No EOL
1.2 MiB
[
|
|
{
|
|
"path": [],
|
|
"type": "object",
|
|
"description": "Defines the entire theme.\n\nA theme is the collection of the layers that are shown; the intro text, the icon, ...\nIt more or less defines the entire experience.\n\nMost of the fields defined here are metadata about the theme, such as its name, description, supported languages, default starting location, ...\n\nThe main chunk of the json will however be the 'layers'-array, where the details of your layers are.\n\nGeneral remark: a type (string | any) indicates either a fixed or a translatable string."
|
|
},
|
|
{
|
|
"path": [
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of this layout.\n\nThis is used as hashtag in the changeset message, which will read something like \"Adding data with #mapcomplete for theme #<the theme id>\"\nMake sure it is something decent and descriptive, it should be a simple, lowercase string.\n\nOn official themes, it'll become the name of the page, e.g.\n'cyclestreets' which become 'cyclestreets.html'"
|
|
},
|
|
{
|
|
"path": [
|
|
"credits"
|
|
],
|
|
"type": "string",
|
|
"description": "Who helped to create this theme and should be attributed?"
|
|
},
|
|
{
|
|
"path": [
|
|
"maintainer"
|
|
],
|
|
"type": "string",
|
|
"description": "Who does maintain this preset?"
|
|
},
|
|
{
|
|
"path": [
|
|
"version"
|
|
],
|
|
"type": "string",
|
|
"description": "A version number, either semantically or by date.\nShould be sortable, where the higher value is the later version"
|
|
},
|
|
{
|
|
"path": [
|
|
"mustHaveLanguage"
|
|
],
|
|
"type": "array",
|
|
"description": "Only used in 'generateLayerOverview': if present, every translation will be checked to make sure it is fully translated.\n\nThis must be a list of two-letter, lowercase codes which identifies the language, e.g. \"en\", \"nl\", ..."
|
|
},
|
|
{
|
|
"path": [
|
|
"title"
|
|
],
|
|
"description": "The title, as shown in the welcome message and the more-screen."
|
|
},
|
|
{
|
|
"path": [
|
|
"shortDescription"
|
|
],
|
|
"description": "A short description, showed as social description and in the 'more theme'-buttons.\nNote that if this one is not defined, the first sentence of 'description' is used"
|
|
},
|
|
{
|
|
"path": [
|
|
"description"
|
|
],
|
|
"description": "The description, as shown in the welcome message and the more-screen"
|
|
},
|
|
{
|
|
"path": [
|
|
"descriptionTail"
|
|
],
|
|
"description": "A part of the description, shown under the login-button."
|
|
},
|
|
{
|
|
"path": [
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The icon representing this theme.\nUsed as logo in the more-screen and (for official themes) as favicon, webmanifest logo, ...\nEither a URL or a base64 encoded value (which should include 'data:image/svg+xml;base64)\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"socialImage"
|
|
],
|
|
"typeHint": "image",
|
|
"type": "string",
|
|
"description": "Link to a 'social image' which is included as og:image-tag on official themes.\nUseful to share the theme on social media.\nSee https://www.h3xed.com/web-and-internet/how-to-use-og-image-meta-tag-facebook-reddit for more information$\n\nType: image"
|
|
},
|
|
{
|
|
"path": [
|
|
"startZoom"
|
|
],
|
|
"type": "number",
|
|
"description": "Default location and zoom to start.\nNote that this is barely used. Once the user has visited mapcomplete at least once, the previous location of the user will be used"
|
|
},
|
|
{
|
|
"path": [
|
|
"widenFactor"
|
|
],
|
|
"type": "number",
|
|
"description": "When a query is run, the data within bounds of the visible map is loaded.\nHowever, users tend to pan and zoom a lot. It is pretty annoying if every single pan means a reloading of the data.\nFor this, the bounds are widened in order to make a small pan still within bounds of the loaded data.\n\nIF widenfactor is 1, this feature is disabled. A recommended value is between 1 and 3"
|
|
},
|
|
{
|
|
"path": [
|
|
"overpassMaxZoom"
|
|
],
|
|
"type": "number",
|
|
"description": "At low zoom levels, overpass is used to query features.\nAt high zoom level, the OSM api is used to fetch one or more BBOX aligning with a slippy tile.\nThe overpassMaxZoom controls the flipoverpoint: if the zoom is this or lower, overpass is used."
|
|
},
|
|
{
|
|
"path": [
|
|
"osmApiTileSize"
|
|
],
|
|
"type": "number",
|
|
"description": "When the OSM-api is used to fetch features, it does so in a tiled fashion.\nThese tiles are using a ceratin zoom level, that can be controlled here\nDefault: overpassMaxZoom + 1"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of this layer.\nThis should be a simple, lowercase, human readable string that is used to identify the layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"name"
|
|
],
|
|
"description": "The name of this layer\nUsed in the layer control panel and the 'Personal theme'.\n\nIf not given, will be hidden (and thus not toggable) in the layer control"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"description"
|
|
],
|
|
"description": "A description for this layer.\nShown in the layer selections and in the personel theme"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source"
|
|
],
|
|
"type": [
|
|
{
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"osmTags": {
|
|
"$ref": "#/definitions/TagConfigJson",
|
|
"description": "Every source must set which tags have to be present in order to load the given layer."
|
|
},
|
|
"maxCacheAge": {
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"osmTags"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"overpassScript": {
|
|
"description": "If set, this custom overpass-script will be used instead of building one by using the OSM-tags.\nSpecifying OSM-tags is still obligatory and will still hide non-matching items and they will be used for the rest of the pipeline.\n_This should be really rare_.\n\nFor example, when you want to fetch all grass-areas in parks and which are marked as publicly accessible: \n```\n\"source\": {\n \"overpassScript\": \n \"way[\\\"leisure\\\"=\\\"park\\\"];node(w);is_in;area._[\\\"leisure\\\"=\\\"park\\\"];(way(area)[\\\"landuse\\\"=\\\"grass\\\"]; node(w); );\",\n \"osmTags\": \"access=yes\"\n}\n```",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"osmTags": {
|
|
"$ref": "#/definitions/TagConfigJson",
|
|
"description": "Every source must set which tags have to be present in order to load the given layer."
|
|
},
|
|
"maxCacheAge": {
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"osmTags"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"maxCacheAge"
|
|
],
|
|
"type": "number",
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"overpassScript"
|
|
],
|
|
"type": "string",
|
|
"description": "If set, this custom overpass-script will be used instead of building one by using the OSM-tags.\nSpecifying OSM-tags is still obligatory and will still hide non-matching items and they will be used for the rest of the pipeline.\n_This should be really rare_.\n\nFor example, when you want to fetch all grass-areas in parks and which are marked as publicly accessible: \n```\n\"source\": {\n \"overpassScript\": \n \"way[\\\"leisure\\\"=\\\"park\\\"];node(w);is_in;area._[\\\"leisure\\\"=\\\"park\\\"];(way(area)[\\\"landuse\\\"=\\\"grass\\\"]; node(w); );\",\n \"osmTags\": \"access=yes\"\n}\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"maxCacheAge"
|
|
],
|
|
"type": "number",
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"geoJson"
|
|
],
|
|
"type": "string",
|
|
"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}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"geoJsonZoomLevel"
|
|
],
|
|
"type": "number",
|
|
"description": "To load a tiled geojson layer, set the zoomlevel of the tiles"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"isOsmCache"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Indicates that the upstream geojson data is OSM-derived.\nUseful for e.g. merging or for scripts generating this cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"mercatorCrs"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Some API's use a mercator-projection (EPSG:900913) instead of WGS84. Set the flag `mercatorCrs: true` in the source for this"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"source",
|
|
"idKey"
|
|
],
|
|
"type": "string",
|
|
"description": "Some API's have an id-field, but give it a different name.\nSetting this key will rename this field into 'id'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"calculatedTags"
|
|
],
|
|
"type": "array",
|
|
"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]"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"doNotDownload"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, this layer will not query overpass; but it'll still match the tags above which are by chance returned by other layers.\nWorks well together with 'passAllFeatures', to add decoration"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nImportant: hiding features does not work dynamically, but is only calculated when the data is first renders.\nThis implies that it is not possible to hide a feature after a tagging change\n\nThe default value is 'yes'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"isShown",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"forceLoad"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Advanced option - might be set by the theme compiler\n\nIf true, this data will _always_ be loaded, even if the theme is disabled"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"minzoom"
|
|
],
|
|
"type": "number",
|
|
"description": "The minimum needed zoomlevel required before loading of the data start\nDefault: 0"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"shownByDefault"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Indicates if this layer is shown by default;\ncan be used to hide a layer from start, or to load the layer but only to show it where appropriate (e.g. for snapping to it)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"minzoomVisible"
|
|
],
|
|
"type": "number",
|
|
"description": "The zoom level at which point the data is hidden again\nDefault: 100 (thus: always visible"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The title shown in a popup for elements of this layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"title",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons"
|
|
],
|
|
"typeHint": "icon[]",
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"defaults"
|
|
]
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
],
|
|
"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)\n\nType: icon[]"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/default_4"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default_5"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default<default|default|default[]|default[]>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Visualisation of the items on the map"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "Rewrites and multiplies the given renderings of type T.\n\nThis can be used for introducing many similar questions automatically,\nwhich also makes translations easier.\n\n(Note that the key does _not_ need to be wrapped in {}. \nHowever, we recommend to use them if the key is used in a translation, as missing keys will be picked up and warned for by the translation scripts)\n\nFor example:\n\n```\n{\n rewrite: {\n sourceString: [\"key\", \"a|b|c\"],\n into: [\n [\"X\", 0]\n [\"Y\", 1],\n [\"Z\", 2]\n ],\n renderings: [{\n \"key\":\"a|b|c\"\n }]\n }\n}\n```\nwill result in _three_ copies (as the values to rewrite into have three values, namely:\n\n[\n {\n # The first pair: key --> X, a|b|c --> 0\n \"X\": 0\n },\n {\n \"Y\": 1\n },\n {\n \"Z\": 2\n }\n\n]"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"passAllFeatures"
|
|
],
|
|
"type": "boolean",
|
|
"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"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets"
|
|
],
|
|
"type": "array",
|
|
"description": "Presets for this layer.\nA preset shows up when clicking the map on a without data (or when right-clicking/long-pressing);\nit will prompt the user to add a new point.\n\nThe most important aspect are the tags, which define which tags the new point will have;\nThe title is shown in the dialog, along with the first sentence of the description.\n\nUpon confirmation, the full description is shown beneath the buttons - perfect to add pictures and examples.\n\nNote: the icon of the preset is determined automatically based on the tags and the icon above. Don't worry about that!\nNB: if no presets are defined, the popup to add new points doesn't show up at all"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"title"
|
|
],
|
|
"description": "The title - shown on the 'add-new'-button.\n\nThis should include the article of the noun, e.g. 'a hydrant', 'a bicycle pump'.\nThis text will be inserted into `Add {category} here`, becoming `Add a hydrant here`.\n\nDo _not_ indicate 'new': 'add a new shop here' is incorrect, as the shop might have existed forever, it could just be unmapped!"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"tags"
|
|
],
|
|
"type": "array",
|
|
"description": "The tags to add. It determines the icon too"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"description"
|
|
],
|
|
"description": "The _first sentence_ of the description is shown on the button of the `add` menu.\nThe full description is shown in the confirmation dialog.\n\n(The first sentence is until the first '.'-character in the description)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"exampleImages"
|
|
],
|
|
"typeHint": "image",
|
|
"type": "array",
|
|
"description": "Example images, which show real-life pictures of what such a feature might look like\n\nType: image"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"preciseInput"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"preferredBackground": {
|
|
"description": "The type of background picture",
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"snapToLayer": {
|
|
"description": "If specified, these layers will be shown to and the new point will be snapped towards it",
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"maxSnapDistance": {
|
|
"description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"preferredBackground"
|
|
]
|
|
},
|
|
{
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"preciseInput",
|
|
"preferredBackground"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The type of background picture"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"preciseInput",
|
|
"snapToLayer"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If specified, these layers will be shown to and the new point will be snapped towards it"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"presets",
|
|
"preciseInput",
|
|
"maxSnapDistance"
|
|
],
|
|
"type": "number",
|
|
"description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/QuestionableTagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"builtin": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"override": {
|
|
"$ref": "#/definitions/Partial<QuestionableTagRenderingConfigJson>"
|
|
}
|
|
},
|
|
"required": [
|
|
"builtin",
|
|
"override"
|
|
]
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default<(string|QuestionableTagRenderingConfigJson|{builtin:string;override:Partial<QuestionableTagRenderingConfigJson>;})[]>"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "All the tag renderings.\nA tag rendering is a block that either shows the known value or asks a question.\n\nRefer to the class `TagRenderingConfigJson` to see the possibilities.\n\nNote that we can also use a string here - where the string refers to a tag rendering defined in `assets/questions/questions.json`,\nwhere a few very general questions are defined e.g. website, phone number, ...\nFurthermore, _all_ the questions of another layer can be reused with `otherlayer.*`\nIf you need only a single of the tagRenderings, use `otherlayer.tagrenderingId`\nIf one or more questions have a 'group' or 'label' set, select all the entries with the corresponding group or label with `otherlayer.*group`\nRemark: if a tagRendering is 'lent' from another layer, the 'source'-tags are copied and added as condition.\nIf they are not wanted, remove them with an override\n\nA special value is 'questions', which indicates the location of the questions box. If not specified, it'll be appended to the bottom of the featureInfobox.\n\nAt last, one can define a group of renderings where parts of all strings will be replaced by multiple other strings.\nThis is mainly create questions for a 'left' and a 'right' side of the road.\nThese will be grouped and questions will be asked together"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings"
|
|
],
|
|
"type": "object",
|
|
"description": "A QuestionableTagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nIf the desired tags are missing and a question is defined, a question will be shown instead."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings"
|
|
],
|
|
"type": "object",
|
|
"description": "Rewrites and multiplies the given renderings of type T.\n\nThis can be used for introducing many similar questions automatically,\nwhich also makes translations easier.\n\n(Note that the key does _not_ need to be wrapped in {}. \nHowever, we recommend to use them if the key is used in a translation, as missing keys will be picked up and warned for by the translation scripts)\n\nFor example:\n\n```\n{\n rewrite: {\n sourceString: [\"key\", \"a|b|c\"],\n into: [\n [\"X\", 0]\n [\"Y\", 1],\n [\"Z\", 2]\n ],\n renderings: [{\n \"key\":\"a|b|c\"\n }]\n }\n}\n```\nwill result in _three_ copies (as the values to rewrite into have three values, namely:\n\n[\n {\n # The first pair: key --> X, a|b|c --> 0\n \"X\": 0\n },\n {\n \"Y\": 1\n },\n {\n \"Z\": 2\n }\n\n]"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "A QuestionableTagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nIf the desired tags are missing and a question is defined, a question will be shown instead."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/default_1"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"sameAs": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"sameAs"
|
|
]
|
|
}
|
|
],
|
|
"description": "All the extra questions for filtering"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "An id/name for this filter, used to set the URL parameters"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options"
|
|
],
|
|
"type": "array",
|
|
"description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The main representation of Tags.\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for more documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"filter",
|
|
"options",
|
|
"fields",
|
|
"name"
|
|
],
|
|
"type": "string",
|
|
"description": "If name is `search`, use \"_first_comment~.*{search}.*\" as osmTags"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/DeleteConfigJson"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "This block defines under what circumstances the delete dialog is shown for objects of this layer.\nIf set, a dialog is shown to the user to (soft) delete the point.\nThe dialog is built to be user friendly and to prevent mistakes.\nIf deletion is not possible, the dialog will hide itself and show the reason of non-deletability instead.\n\nTo configure, the following values are possible:\n\n- false: never ever show the delete button\n- true: show the default delete button\n- undefined: use the mapcomplete default to show deletion or not. Currently, this is the same as 'false' but this will change in the future\n- or: a hash with options (see below)\n\n The delete dialog\n =================\n\n\n\n#### Hard deletion if enough experience\n\nA feature can only be deleted from OpenStreetMap by mapcomplete if:\n\n- It is a node\n- No ways or relations use the node\n- The logged-in user has enough experience OR the user is the only one to have edited the point previously\n- The logged-in user has no unread messages (or has a ton of experience)\n- The user did not select one of the 'non-delete-options' (see below)\n\nIn all other cases, a 'soft deletion' is used.\n\n#### Soft deletion\n\nA 'soft deletion' is when the point isn't deleted from OSM but retagged so that it'll won't how up in the mapcomplete theme anymore.\nThis makes it look like it was deleted, without doing damage. A fixme will be added to the point.\n\nNote that a soft deletion is _only_ possible if these tags are provided by the theme creator, as they'll be different for every theme\n\n#### No-delete options\n\nIn some cases, the contributor might want to delete something for the wrong reason (e.g. someone who wants to have a path removed \"because the path is on their private property\").\nHowever, the path exists in reality and should thus be on OSM - otherwise the next contributor will pass by and notice \"hey, there is a path missing here! Let me redraw it in OSM!)\n\nThe correct approach is to retag the feature in such a way that it is semantically correct *and* that it doesn't show up on the theme anymore.\nA no-delete option is offered as 'reason to delete it', but secretly retags."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"extraDeleteReasons"
|
|
],
|
|
"type": "array",
|
|
"description": "*\nBy default, three reasons to delete a point are shown:\n\n- The point does not exist anymore\n- The point was a testing point\n- THe point could not be found\n\nHowever, for some layers, there might be different or more specific reasons for deletion which can be user friendly to set, e.g.:\n\n- the shop has closed\n- the climbing route has been closed of for nature conservation reasons\n- ...\n\nThese reasons can be stated here and will be shown in the list of options the user can choose from"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"extraDeleteReasons",
|
|
"explanation"
|
|
],
|
|
"description": "The text that will be shown to the user - translatable"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"extraDeleteReasons",
|
|
"changesetMessage"
|
|
],
|
|
"type": "string",
|
|
"description": "The text that will be uploaded into the changeset or will be used in the fixme in case of a soft deletion\nShould be a few words, in english"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"nonDeleteMappings"
|
|
],
|
|
"type": "array",
|
|
"description": "In some cases, a (starting) contributor might wish to delete a feature even though deletion is not appropriate.\n(The most relevant case are small paths running over private property. These should be marked as 'private' instead of deleted, as the community might trace the path again from aerial imagery, gettting us back to the original situation).\n\nBy adding a 'nonDeleteMapping', an option can be added into the list which will retag the feature.\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"then"
|
|
],
|
|
"description": "The human explanation for the options"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"deletion",
|
|
"neededChangesets"
|
|
],
|
|
"type": "number",
|
|
"description": "*\nBy default, the contributor needs 20 previous changesets to delete points edited by others.\nFor some small features (e.g. bicycle racks) this is too much and this requirement can be lowered or dropped, which can be done here."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"allowMove"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/default_3"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "Indicates if a point can be moved and configures the modalities.\n\nA feature can be moved by MapComplete if:\n\n- It is a point\n- The point is _not_ part of a way or a a relation.\n\nOff by default. Can be enabled by setting this flag or by configuring."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"allowMove",
|
|
"enableImproveAccuracy"
|
|
],
|
|
"type": "boolean",
|
|
"description": "One default reason to move a point is to improve accuracy.\nSet to false to disable this reason"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"allowMove",
|
|
"enableRelocation"
|
|
],
|
|
"type": "boolean",
|
|
"description": "One default reason to move a point is because it has relocated\nSet to false to disable this reason"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"allowSplit"
|
|
],
|
|
"type": "boolean",
|
|
"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"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units"
|
|
],
|
|
"type": "array",
|
|
"description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n default: true,\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"appliesToKey"
|
|
],
|
|
"type": "array",
|
|
"description": "Every key from this list will be normalized"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"eraseInvalidValues"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, invalid values will be erased in the MC application (but not in OSM of course!)\nBe careful with setting this"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits"
|
|
],
|
|
"type": "array",
|
|
"description": "The possible denominations"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"canonicalDenomination"
|
|
],
|
|
"type": "string",
|
|
"description": "The canonical value which will be added to the value in OSM.\ne.g. \"m\" for meters\nIf the user inputs '42', the canonical value will be added and it'll become '42m'.\n\nImportant: often, _no_ canonical values are expected, e.g. in the case of 'maxspeed' where 'km/h' is the default.\nIn this case, an empty string should be used"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"canonicalDenominationSingular"
|
|
],
|
|
"type": "string",
|
|
"description": "The canonical denomination in the case that the unit is precisely '1'"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"alternativeDenomination"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of alternative values which can occur in the OSM database - used for parsing."
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"human"
|
|
],
|
|
"description": "The value for humans in the dropdown. This should not use abbreviations and should be translated, e.g.\n{\n \"en\": \"meter\",\n \"fr\": \"metre\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"humanSingular"
|
|
],
|
|
"description": "The value for humans in the dropdown. This should not use abbreviations and should be translated, e.g.\n{\n \"en\": \"minute\",\n \"nl\": \"minuut\"x²\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"prefix"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, then the canonical value will be prefixed instead, e.g. for '€'\nNote that if all values use 'prefix', the dropdown might move to before the text field"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"units",
|
|
"applicableUnits",
|
|
"default"
|
|
],
|
|
"type": "boolean",
|
|
"description": "The default interpretation - only one can be set.\nIf none is set, the first unit will be considered the default interpretation of a value without a unit"
|
|
},
|
|
{
|
|
"path": [
|
|
"overrideAll",
|
|
"syncSelection"
|
|
],
|
|
"type": "string",
|
|
"description": "If set, synchronizes whether or not this layer is enabled.\n\nno: Do not sync at all, always revert to default\nlocal: keep selection on local storage\ntheme-only: sync via OSM, but this layer will only be toggled in this theme\nglobal: all layers with this ID will be synced accross all themes"
|
|
},
|
|
{
|
|
"path": [
|
|
"defaultBackgroundId"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the default background. BY default: vanilla OSM"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources"
|
|
],
|
|
"type": "array",
|
|
"description": "Define some (overlay) slippy map tilesources"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources"
|
|
],
|
|
"type": "object",
|
|
"description": "Configuration for a tilesource config"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "Id of this overlay, used in the URL-parameters to set the state"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"source"
|
|
],
|
|
"type": "string",
|
|
"description": "The path, where {x}, {y} and {z} will be substituted"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"isOverlay"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Wether or not this is an overlay. Default: true"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"name"
|
|
],
|
|
"description": "How this will be shown in the selection menu.\nMake undefined if this may not be toggled"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"minZoom"
|
|
],
|
|
"type": "number",
|
|
"description": "Only visible at this or a higher zoom level"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"maxZoom"
|
|
],
|
|
"type": "number",
|
|
"description": "Only visible at this or a lower zoom level"
|
|
},
|
|
{
|
|
"path": [
|
|
"tileLayerSources",
|
|
"defaultState"
|
|
],
|
|
"type": "boolean",
|
|
"description": "The default state, set to false to hide by default"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/LayerConfigJson"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"builtin": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"override": {},
|
|
"hideTagRenderingsWithLabels": {
|
|
"description": "TagRenderings with any of these labels will be removed from the layer.\nNote that the 'id' and 'group' are considered labels too",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"builtin",
|
|
"override"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The layers to display.\n\nEvery layer contains a description of which feature to display - the overpassTags which are queried.\nInstead of running one query for every layer, the query is fused.\n\nAfterwards, every layer is given the list of features.\nEvery layer takes away the features that match with them*, and give the leftovers to the next layers.\n\nThis implies that the _order_ of the layers is important in the case of features with the same tags;\nas the later layers might never receive their feature.\n\n*layers can also remove 'leftover'-features if the leftovers overlap with a feature in the layer itself\n\nNote that builtin layers can be reused. Either put in the name of the layer to reuse, or use {builtin: \"layername\", override: ...}\n\nThe 'override'-object will be copied over the original values of the layer, which allows to change certain aspects of the layer\n\nFor example: If you would like to use layer nature reserves, but only from a specific operator (eg. Natuurpunt) you would use the following in your theme:\n\n```\n\"layer\": {\n \"builtin\": \"nature_reserve\",\n \"override\": {\"source\": \n {\"osmTags\": {\n \"+and\":[\"operator=Natuurpunt\"]\n }\n }\n }\n}\n```\n\nIt's also possible to load multiple layers at once, for example, if you would like for both drinking water and benches to start at the zoomlevel at 12, you would use the following:\n\n```\n\"layer\": {\n \"builtin\": [\"benches\", \"drinking_water\"],\n \"override\": {\"minzoom\": 12}\n}\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers"
|
|
],
|
|
"type": "object",
|
|
"description": "Configuration for a single layer"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of this layer.\nThis should be a simple, lowercase, human readable string that is used to identify the layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"name"
|
|
],
|
|
"description": "The name of this layer\nUsed in the layer control panel and the 'Personal theme'.\n\nIf not given, will be hidden (and thus not toggable) in the layer control"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"description"
|
|
],
|
|
"description": "A description for this layer.\nShown in the layer selections and in the personel theme"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source"
|
|
],
|
|
"type": [
|
|
{
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"osmTags": {
|
|
"$ref": "#/definitions/TagConfigJson",
|
|
"description": "Every source must set which tags have to be present in order to load the given layer."
|
|
},
|
|
"maxCacheAge": {
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"osmTags"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"overpassScript": {
|
|
"description": "If set, this custom overpass-script will be used instead of building one by using the OSM-tags.\nSpecifying OSM-tags is still obligatory and will still hide non-matching items and they will be used for the rest of the pipeline.\n_This should be really rare_.\n\nFor example, when you want to fetch all grass-areas in parks and which are marked as publicly accessible: \n```\n\"source\": {\n \"overpassScript\": \n \"way[\\\"leisure\\\"=\\\"park\\\"];node(w);is_in;area._[\\\"leisure\\\"=\\\"park\\\"];(way(area)[\\\"landuse\\\"=\\\"grass\\\"]; node(w); );\",\n \"osmTags\": \"access=yes\"\n}\n```",
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"allOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"osmTags": {
|
|
"$ref": "#/definitions/TagConfigJson",
|
|
"description": "Every source must set which tags have to be present in order to load the given layer."
|
|
},
|
|
"maxCacheAge": {
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"osmTags"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"description": "This determines where the data for the layer is fetched: from OSM or from an external geojson dataset.\n\nIf no 'geojson' is defined, data will be fetched from overpass and the OSM-API.\n\nEvery source _must_ define which tags _must_ be present in order to be picked up."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"maxCacheAge"
|
|
],
|
|
"type": "number",
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"overpassScript"
|
|
],
|
|
"type": "string",
|
|
"description": "If set, this custom overpass-script will be used instead of building one by using the OSM-tags.\nSpecifying OSM-tags is still obligatory and will still hide non-matching items and they will be used for the rest of the pipeline.\n_This should be really rare_.\n\nFor example, when you want to fetch all grass-areas in parks and which are marked as publicly accessible: \n```\n\"source\": {\n \"overpassScript\": \n \"way[\\\"leisure\\\"=\\\"park\\\"];node(w);is_in;area._[\\\"leisure\\\"=\\\"park\\\"];(way(area)[\\\"landuse\\\"=\\\"grass\\\"]; node(w); );\",\n \"osmTags\": \"access=yes\"\n}\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"maxCacheAge"
|
|
],
|
|
"type": "number",
|
|
"description": "The maximum amount of seconds that a tile is allowed to linger in the cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"geoJson"
|
|
],
|
|
"type": "string",
|
|
"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}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"geoJsonZoomLevel"
|
|
],
|
|
"type": "number",
|
|
"description": "To load a tiled geojson layer, set the zoomlevel of the tiles"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"isOsmCache"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Indicates that the upstream geojson data is OSM-derived.\nUseful for e.g. merging or for scripts generating this cache"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"mercatorCrs"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Some API's use a mercator-projection (EPSG:900913) instead of WGS84. Set the flag `mercatorCrs: true` in the source for this"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"source",
|
|
"idKey"
|
|
],
|
|
"type": "string",
|
|
"description": "Some API's have an id-field, but give it a different name.\nSetting this key will rename this field into 'id'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"calculatedTags"
|
|
],
|
|
"type": "array",
|
|
"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]"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"doNotDownload"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, this layer will not query overpass; but it'll still match the tags above which are by chance returned by other layers.\nWorks well together with 'passAllFeatures', to add decoration"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If set, only features matching this extra tag will be shown.\nThis is useful to hide certain features from view.\n\nImportant: hiding features does not work dynamically, but is only calculated when the data is first renders.\nThis implies that it is not possible to hide a feature after a tagging change\n\nThe default value is 'yes'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"isShown",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"isShown",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"forceLoad"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Advanced option - might be set by the theme compiler\n\nIf true, this data will _always_ be loaded, even if the theme is disabled"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"minzoom"
|
|
],
|
|
"type": "number",
|
|
"description": "The minimum needed zoomlevel required before loading of the data start\nDefault: 0"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"shownByDefault"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Indicates if this layer is shown by default;\ncan be used to hide a layer from start, or to load the layer but only to show it where appropriate (e.g. for snapping to it)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"minzoomVisible"
|
|
],
|
|
"type": "number",
|
|
"description": "The zoom level at which point the data is hidden again\nDefault: 100 (thus: always visible"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The title shown in a popup for elements of this layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"title",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"title",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons"
|
|
],
|
|
"typeHint": "icon[]",
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string",
|
|
"enum": [
|
|
"defaults"
|
|
]
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
],
|
|
"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)\n\nType: icon[]"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"titleIcons",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"titleIcons",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/default_4"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default_5"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default<default|default|default[]|default[]>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"description": "Visualisation of the items on the map"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering"
|
|
],
|
|
"type": "object",
|
|
"description": "Rewrites and multiplies the given renderings of type T.\n\nThis can be used for introducing many similar questions automatically,\nwhich also makes translations easier.\n\n(Note that the key does _not_ need to be wrapped in {}. \nHowever, we recommend to use them if the key is used in a translation, as missing keys will be picked up and warned for by the translation scripts)\n\nFor example:\n\n```\n{\n rewrite: {\n sourceString: [\"key\", \"a|b|c\"],\n into: [\n [\"X\", 0]\n [\"Y\", 1],\n [\"Z\", 2]\n ],\n renderings: [{\n \"key\":\"a|b|c\"\n }]\n }\n}\n```\nwill result in _three_ copies (as the values to rewrite into have three values, namely:\n\n[\n {\n # The first pair: key --> X, a|b|c --> 0\n \"X\": 0\n },\n {\n \"Y\": 1\n },\n {\n \"Z\": 2\n }\n\n]"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The LineRenderingConfig gives all details onto how to render a single line of a feature.\n\nThis can be used if:\n\n- The feature is a line\n- The feature is an area"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color for way-elements and SVG-elements.\nIf the value starts with \"--\", the style of the body element will be queried for the corresponding variable instead"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"color",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"number"
|
|
]
|
|
}
|
|
],
|
|
"description": "The stroke-width for way-elements"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"width",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A dasharray, e.g. \"5 6\"\nThe dasharray defines 'pixels of line, pixels of gap, pixels of line, pixels of gap',\nDefault value: \"\" (empty string == full line)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"dashArray",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The form at the end of a line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"lineCap",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"enum": [
|
|
"no",
|
|
"yes"
|
|
],
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Whether or not to fill polygons"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fill",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The color to fill a polygon with.\nIf undefined, this will be slightly more opaque version of the stroke line"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"fillColor",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"description": "The number of pixels this line should be moved.\nUse a positive numbe to move to the right, a negative to move to the left (left/right as defined by the drawing direction of the line).\n\nIMPORTANT: MapComplete will already normalize 'key:both:property' and 'key:both' into the corresponding 'key:left' and 'key:right' tagging (same for 'sidewalk=left/right/both' which is rewritten to 'sidewalk:left' and 'sidewalk:right')\nThis simplifies programming. Refer to the CalculatedTags.md-documentation for more details"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"offset",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "The PointRenderingConfig gives all details onto how to render a single point of a feature.\n\nThis can be used if:\n\n- The feature is a point\n- To render something at the centroid of an area, or at the start, end or projected centroid of a way"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"location"
|
|
],
|
|
"type": "array",
|
|
"description": "All the locations that this point should be rendered at.\nUsing `location: [\"point\", \"centroid\"] will always render centerpoint.\n'projected_centerpoint' will show an item on the line itself, near the middle of the line. (LineStrings only)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The icon for an element.\nNote that this also doubles as the icon for this layer (rendered with the overpass-tags) ánd the icon in the presets.\n\nThe result of the icon is rendered as follows:\nthe resulting string is interpreted as a _list_ of items, separated by \";\". The bottommost layer is the first layer.\nAs a result, on could use a generic pin, then overlay it with a specific icon.\nTo make things even more practical, one can use all SVG's from the folder \"assets/svg\" and _substitute the color_ in it.\nE.g. to draw a red pin, use \"pin:#f00\", to have a green circle with your icon on top, use `circle:#0f0;<path to my icon.svg>`\n\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"icon",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of extra badges to show next to the icon as small badge\nThey will be added as a 25% height icon at the bottom right of the icon, with all the badges in a flex layout.\n\nNote: strings are interpreted as icons, so layering and substituting is supported. You can use `circle:white;./my_icon.svg` to add a background circle"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Badge to show\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconBadges",
|
|
"then",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A string containing \"width,height\" or \"width,height,anchorpoint\" where anchorpoint is any of 'center', 'top', 'bottom', 'left', 'right', 'bottomleft','topright', ...\nDefault is '40,40,center'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"iconSize",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The rotation of an icon, useful for e.g. directions.\nUsage: as if it were a css property for 'rotate', thus has to end with 'deg', e.g. `90deg`, `{direction}deg`, `calc(90deg - {camera:direction}deg)``"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"rotation",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/TagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "A HTML-fragment that is shown below the icon, for example:\n<div style=\"background: white\">{name}</div>\n\nIf the icon is undefined, then the label is shown in the center of the feature.\nNote that, if the wayhandling hides the icon then no label is shown as well."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label"
|
|
],
|
|
"type": "object",
|
|
"description": "A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nFor an _editable_ tagRendering, use 'QuestionableTagRenderingConfigJson' instead, which extends this one"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"freeform",
|
|
"key"
|
|
],
|
|
"type": "string",
|
|
"description": "If this key is present, then 'render' is used to display the value.\nIf this is undefined, the rendering is _always_ shown"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"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\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An icon supporting this mapping; typically shown pretty small\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"mapRendering",
|
|
"renderings",
|
|
"label",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "A hint to mapcomplete on how to render this icon within the mapping.\nThis is translated to 'mapping-icon-<classtype>', so defining your own in combination with a custom CSS is possible (but discouraged)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"passAllFeatures"
|
|
],
|
|
"type": "boolean",
|
|
"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"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets"
|
|
],
|
|
"type": "array",
|
|
"description": "Presets for this layer.\nA preset shows up when clicking the map on a without data (or when right-clicking/long-pressing);\nit will prompt the user to add a new point.\n\nThe most important aspect are the tags, which define which tags the new point will have;\nThe title is shown in the dialog, along with the first sentence of the description.\n\nUpon confirmation, the full description is shown beneath the buttons - perfect to add pictures and examples.\n\nNote: the icon of the preset is determined automatically based on the tags and the icon above. Don't worry about that!\nNB: if no presets are defined, the popup to add new points doesn't show up at all"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"title"
|
|
],
|
|
"description": "The title - shown on the 'add-new'-button.\n\nThis should include the article of the noun, e.g. 'a hydrant', 'a bicycle pump'.\nThis text will be inserted into `Add {category} here`, becoming `Add a hydrant here`.\n\nDo _not_ indicate 'new': 'add a new shop here' is incorrect, as the shop might have existed forever, it could just be unmapped!"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"tags"
|
|
],
|
|
"type": "array",
|
|
"description": "The tags to add. It determines the icon too"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"description"
|
|
],
|
|
"description": "The _first sentence_ of the description is shown on the button of the `add` menu.\nThe full description is shown in the confirmation dialog.\n\n(The first sentence is until the first '.'-character in the description)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"exampleImages"
|
|
],
|
|
"typeHint": "image",
|
|
"type": "array",
|
|
"description": "Example images, which show real-life pictures of what such a feature might look like\n\nType: image"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"preciseInput"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"preferredBackground": {
|
|
"description": "The type of background picture",
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"snapToLayer": {
|
|
"description": "If specified, these layers will be shown to and the new point will be snapped towards it",
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"maxSnapDistance": {
|
|
"description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": [
|
|
"preferredBackground"
|
|
]
|
|
},
|
|
{
|
|
"enum": [
|
|
true
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "If set, the user will prompted to confirm the location before actually adding the data.\nThis will be with a 'drag crosshair'-method.\n\nIf 'preferredBackgroundCategory' is set, the element will attempt to pick a background layer of that category."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"preciseInput",
|
|
"preferredBackground"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "The type of background picture"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"preciseInput",
|
|
"snapToLayer"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If specified, these layers will be shown to and the new point will be snapped towards it"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"presets",
|
|
"preciseInput",
|
|
"maxSnapDistance"
|
|
],
|
|
"type": "number",
|
|
"description": "If specified, a new point will only be snapped if it is within this range.\nDistance in meter\n\nDefault: 10"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/QuestionableTagRenderingConfigJson"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"builtin": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"override": {
|
|
"$ref": "#/definitions/Partial<QuestionableTagRenderingConfigJson>"
|
|
}
|
|
},
|
|
"required": [
|
|
"builtin",
|
|
"override"
|
|
]
|
|
},
|
|
{
|
|
"$ref": "#/definitions/default<(string|QuestionableTagRenderingConfigJson|{builtin:string;override:Partial<QuestionableTagRenderingConfigJson>;})[]>"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "All the tag renderings.\nA tag rendering is a block that either shows the known value or asks a question.\n\nRefer to the class `TagRenderingConfigJson` to see the possibilities.\n\nNote that we can also use a string here - where the string refers to a tag rendering defined in `assets/questions/questions.json`,\nwhere a few very general questions are defined e.g. website, phone number, ...\nFurthermore, _all_ the questions of another layer can be reused with `otherlayer.*`\nIf you need only a single of the tagRenderings, use `otherlayer.tagrenderingId`\nIf one or more questions have a 'group' or 'label' set, select all the entries with the corresponding group or label with `otherlayer.*group`\nRemark: if a tagRendering is 'lent' from another layer, the 'source'-tags are copied and added as condition.\nIf they are not wanted, remove them with an override\n\nA special value is 'questions', which indicates the location of the questions box. If not specified, it'll be appended to the bottom of the featureInfobox.\n\nAt last, one can define a group of renderings where parts of all strings will be replaced by multiple other strings.\nThis is mainly create questions for a 'left' and a 'right' side of the road.\nThese will be grouped and questions will be asked together"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings"
|
|
],
|
|
"type": "object",
|
|
"description": "A QuestionableTagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nIf the desired tags are missing and a question is defined, a question will be shown instead."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings"
|
|
],
|
|
"type": "object",
|
|
"description": "Rewrites and multiplies the given renderings of type T.\n\nThis can be used for introducing many similar questions automatically,\nwhich also makes translations easier.\n\n(Note that the key does _not_ need to be wrapped in {}. \nHowever, we recommend to use them if the key is used in a translation, as missing keys will be picked up and warned for by the translation scripts)\n\nFor example:\n\n```\n{\n rewrite: {\n sourceString: [\"key\", \"a|b|c\"],\n into: [\n [\"X\", 0]\n [\"Y\", 1],\n [\"Z\", 2]\n ],\n renderings: [{\n \"key\":\"a|b|c\"\n }]\n }\n}\n```\nwill result in _three_ copies (as the values to rewrite into have three values, namely:\n\n[\n {\n # The first pair: key --> X, a|b|c --> 0\n \"X\": 0\n },\n {\n \"Y\": 1\n },\n {\n \"Z\": 2\n }\n\n]"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings"
|
|
],
|
|
"type": "object",
|
|
"description": "A QuestionableTagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.\nIf the desired tags are missing and a question is defined, a question will be shown instead."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"question"
|
|
],
|
|
"description": "If it turns out that this tagRendering doesn't match _any_ value, then we show this question.\nIf undefined, the question is never asked and this tagrendering is read-only"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform"
|
|
],
|
|
"type": "object",
|
|
"description": "Allow freeform text input from the user"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"type"
|
|
],
|
|
"type": "string",
|
|
"description": "The type of the text-field, e.g. 'string', 'nat', 'float', 'date',...\nSee Docs/SpecialInputElements.md and UI/Input/ValidatedTextField.ts for supported values"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"placeholder"
|
|
],
|
|
"description": "A (translated) text that is shown (as gray text) within the textfield"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"helperArgs"
|
|
],
|
|
"type": "array",
|
|
"description": "Extra parameters to initialize the input helper arguments.\nFor semantics, see the 'SpecialInputElements.md'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If a value is added with the textfield, these extra tag is addded.\nUseful to add a 'fixme=freeform textfield used - to be checked'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"inline"
|
|
],
|
|
"type": "boolean",
|
|
"description": "When set, influences the way a question is asked.\nInstead of showing a full-widht text field, the text field will be shown within the rendering of the question.\n\nThis combines badly with special input elements, as it'll distort the layout."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"freeform",
|
|
"default"
|
|
],
|
|
"type": "string",
|
|
"description": "default value to enter if no previous tagging is present.\nNormally undefined (aka do not enter anything)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"multiAnswer"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If true, use checkboxes instead of radio buttons when asking the question"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings"
|
|
],
|
|
"type": "array",
|
|
"description": "Allows fixed-tag inputs, shown either as radiobuttons or as checkboxes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"then"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Shown if the 'if is fulfilled\nType: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"description": "The path to the icon\nType: icon",
|
|
"type": "string"
|
|
},
|
|
"class": {
|
|
"description": "Size of the image",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"class",
|
|
"path"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "An extra icon supporting the choice\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"path"
|
|
],
|
|
"typeHint": "icon",
|
|
"type": "string",
|
|
"description": "The path to the icon\nType: icon"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"icon",
|
|
"class"
|
|
],
|
|
"type": "string",
|
|
"description": "Size of the image"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": [
|
|
"string",
|
|
"boolean"
|
|
]
|
|
}
|
|
],
|
|
"description": "In some cases, multiple taggings exist (e.g. a default assumption, or a commonly mapped abbreviation and a fully written variation).\n\nIn the latter case, a correct text should be shown, but only a single, canonical tagging should be selectable by the user.\nIn this case, one of the mappings can be hiden by setting this flag.\n\nTo demonstrate an example making a default assumption:\n\nmappings: [\n {\n if: \"access=\", -- no access tag present, we assume accessible\n then: \"Accessible to the general public\",\n hideInAnswer: true\n },\n {\n if: \"access=yes\",\n then: \"Accessible to the general public\", -- the user selected this, we add that to OSM\n },\n {\n if: \"access=no\",\n then: \"Not accessible to the public\"\n }\n]\n\n\nFor example, for an operator, we have `operator=Agentschap Natuur en Bos`, which is often abbreviated to `operator=ANB`.\nThen, we would add two mappings:\n{\n if: \"operator=Agentschap Natuur en Bos\" -- the non-abbreviated version which should be uploaded\n then: \"Maintained by Agentschap Natuur en Bos\"\n},\n{\n if: \"operator=ANB\", -- we don't want to upload abbreviations\n then: \"Maintained by Agentschap Natuur en Bos\"\n hideInAnswer: true\n}\n\nHide in answer can also be a tagsfilter, e.g. to make sure an option is only shown when appropriate.\nKeep in mind that this is reverse logic: it will be hidden in the answer if the condition is true, it will thus only show in the case of a mismatch\n\ne.g., for toilets: if \"wheelchair=no\", we know there is no wheelchair dedicated room.\nFor the location of the changing table, the option \"in the wheelchair accessible toilet is weird\", so we write:\n\n{\n \"question\": \"Where is the changing table located?\"\n \"mappings\": [\n {\"if\":\"changing_table:location=female\",\"then\":\"In the female restroom\"},\n {\"if\":\"changing_table:location=male\",\"then\":\"In the male restroom\"},\n {\"if\":\"changing_table:location=wheelchair\",\"then\":\"In the wheelchair accessible restroom\", \"hideInAnswer\": \"wheelchair=no\"},\n \n ]\n}\n\nAlso have a look for the meta-tags\n{\n if: \"operator=Agentschap Natuur en Bos\",\n then: \"Maintained by Agentschap Natuur en Bos\",\n hideInAnswer: \"_country!=be\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"hideInAnswer",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only applicable if 'multiAnswer' is set.\nThis is for situations such as:\n`accepts:coins=no` where one can select all the possible payment methods. However, we want to make explicit that some options _were not_ selected.\nThis can be done with `ifnot`\nNote that we can not explicitly render this negative case to the user, we cannot show `does _not_ accept coins`.\nIf this is important to your usecase, consider using multiple radiobutton-fields without `multiAnswer`"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"ifnot",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"addExtraTags"
|
|
],
|
|
"type": "array",
|
|
"description": "If chosen as answer, these tags will be applied as well onto the object.\nNot compatible with multiAnswer"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "If the searchable selector is picked, mappings with this item will have priority and show up even if the others are hidden\nUse this sparingly"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"mappings",
|
|
"priorityIf",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "The id of the tagrendering, should be an unique string.\nUsed to keep the translations in sync. Only used in the tagRenderings-array of a layerConfig, not requered otherwise.\n\nUse 'questions' to trigger the question box of this group (if a group is defined)"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"group"
|
|
],
|
|
"type": "string",
|
|
"description": "If 'group' is defined on many tagRenderings, these are grouped together when shown. The questions are grouped together as well.\nThe first tagRendering of a group will always be a sticky element."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"labels"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of labels. These are strings that are used for various purposes, e.g. to filter them away"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"render"
|
|
],
|
|
"typeHint": "rendered",
|
|
"description": "Renders this value. Note that \"{key}\"-parts are substituted by the corresponding values of the element.\nIf neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.\n\nNote that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`\ntype: rendered"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Only show this tagrendering (or ask the question) if the selected object also matches the tags specified as `condition`.\n\nThis is useful to ask a follow-up question.\nFor example, within toilets, asking _where_ the diaper changing table is is only useful _if_ there is one.\nThis can be done by adding `\"condition\": \"changing_table=yes\"`\n\nA full example would be:\n```json\n {\n \"question\": \"Where is the changing table located?\",\n \"render\": \"The changing table is located at {changing_table:location}\",\n \"condition\": \"changing_table=yes\",\n \"freeform\": {\n \"key\": \"changing_table:location\",\n \"inline\": true\n },\n \"mappings\": [\n {\n \"then\": \"The changing table is in the toilet for women.\",\n \"if\": \"changing_table:location=female_toilet\"\n },\n {\n \"then\": \"The changing table is in the toilet for men.\",\n \"if\": \"changing_table:location=male_toilet\"\n },\n {\n \"if\": \"changing_table:location=wheelchair_toilet\",\n \"then\": \"The changing table is in the toilet for wheelchair users.\",\n },\n {\n \"if\": \"changing_table:location=dedicated_room\",\n \"then\": \"The changing table is in a dedicated room. \",\n }\n ],\n \"id\": \"toilet-changing_table:location\"\n },\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"tagRenderings",
|
|
"renderings",
|
|
"override",
|
|
"condition",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/default_1"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"sameAs": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"sameAs"
|
|
]
|
|
}
|
|
],
|
|
"description": "All the extra questions for filtering"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"id"
|
|
],
|
|
"type": "string",
|
|
"description": "An id/name for this filter, used to set the URL parameters"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options"
|
|
],
|
|
"type": "array",
|
|
"description": "The options for a filter\nIf there are multiple options these will be a list of radio buttons\nIf there is only one option this will be a checkbox\nFiltering is done based on the given osmTags that are compared to the objects in that layer."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"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",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"osmTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"osmTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"filter",
|
|
"options",
|
|
"fields",
|
|
"name"
|
|
],
|
|
"type": "string",
|
|
"description": "If name is `search`, use \"_first_comment~.*{search}.*\" as osmTags"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/DeleteConfigJson"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "This block defines under what circumstances the delete dialog is shown for objects of this layer.\nIf set, a dialog is shown to the user to (soft) delete the point.\nThe dialog is built to be user friendly and to prevent mistakes.\nIf deletion is not possible, the dialog will hide itself and show the reason of non-deletability instead.\n\nTo configure, the following values are possible:\n\n- false: never ever show the delete button\n- true: show the default delete button\n- undefined: use the mapcomplete default to show deletion or not. Currently, this is the same as 'false' but this will change in the future\n- or: a hash with options (see below)\n\n The delete dialog\n =================\n\n\n\n#### Hard deletion if enough experience\n\nA feature can only be deleted from OpenStreetMap by mapcomplete if:\n\n- It is a node\n- No ways or relations use the node\n- The logged-in user has enough experience OR the user is the only one to have edited the point previously\n- The logged-in user has no unread messages (or has a ton of experience)\n- The user did not select one of the 'non-delete-options' (see below)\n\nIn all other cases, a 'soft deletion' is used.\n\n#### Soft deletion\n\nA 'soft deletion' is when the point isn't deleted from OSM but retagged so that it'll won't how up in the mapcomplete theme anymore.\nThis makes it look like it was deleted, without doing damage. A fixme will be added to the point.\n\nNote that a soft deletion is _only_ possible if these tags are provided by the theme creator, as they'll be different for every theme\n\n#### No-delete options\n\nIn some cases, the contributor might want to delete something for the wrong reason (e.g. someone who wants to have a path removed \"because the path is on their private property\").\nHowever, the path exists in reality and should thus be on OSM - otherwise the next contributor will pass by and notice \"hey, there is a path missing here! Let me redraw it in OSM!)\n\nThe correct approach is to retag the feature in such a way that it is semantically correct *and* that it doesn't show up on the theme anymore.\nA no-delete option is offered as 'reason to delete it', but secretly retags."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"extraDeleteReasons"
|
|
],
|
|
"type": "array",
|
|
"description": "*\nBy default, three reasons to delete a point are shown:\n\n- The point does not exist anymore\n- The point was a testing point\n- THe point could not be found\n\nHowever, for some layers, there might be different or more specific reasons for deletion which can be user friendly to set, e.g.:\n\n- the shop has closed\n- the climbing route has been closed of for nature conservation reasons\n- ...\n\nThese reasons can be stated here and will be shown in the list of options the user can choose from"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"extraDeleteReasons",
|
|
"explanation"
|
|
],
|
|
"description": "The text that will be shown to the user - translatable"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"extraDeleteReasons",
|
|
"changesetMessage"
|
|
],
|
|
"type": "string",
|
|
"description": "The text that will be uploaded into the changeset or will be used in the fixme in case of a soft deletion\nShould be a few words, in english"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"nonDeleteMappings"
|
|
],
|
|
"type": "array",
|
|
"description": "In some cases, a (starting) contributor might wish to delete a feature even though deletion is not appropriate.\n(The most relevant case are small paths running over private property. These should be marked as 'private' instead of deleted, as the community might trace the path again from aerial imagery, gettting us back to the original situation).\n\nBy adding a 'nonDeleteMapping', an option can be added into the list which will retag the feature.\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"if"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"nonDeleteMappings",
|
|
"then"
|
|
],
|
|
"description": "The human explanation for the options"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/OrTagConfigJson",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "In some cases, the contributor is not allowed to delete the current feature (e.g. because it isn't a point, the point is referenced by a relation or the user isn't experienced enough).\nTo still offer the user a 'delete'-option, the feature is retagged with these tags. This is a soft deletion, as the point isn't actually removed from OSM but rather marked as 'disused'\nIt is important that the feature will be retagged in such a way that it won't be picked up by the layer anymore!\n\nExample (note that \"amenity=\" erases the 'amenity'-key alltogether):\n```\n{\n \"and\": [\"disussed:amenity=public_bookcase\", \"amenity=\"]\n}\n```\n\nor (notice the use of the ':='-tag to copy the old value of 'shop=*' into 'disused:shop='):\n```\n{\n \"and\": [\"disused:shop:={shop}\", \"shop=\"]\n}\n```"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"and"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"and"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/AndTagConfigJson"
|
|
},
|
|
{
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation",
|
|
"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",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, a single of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"softDeletionTags",
|
|
"or"
|
|
],
|
|
"type": "object",
|
|
"description": "Chain many tags, to match, all of these should be true\nSee https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Tags_format.md for documentation"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"deletion",
|
|
"neededChangesets"
|
|
],
|
|
"type": "number",
|
|
"description": "*\nBy default, the contributor needs 20 previous changesets to delete points edited by others.\nFor some small features (e.g. bicycle racks) this is too much and this requirement can be lowered or dropped, which can be done here."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"allowMove"
|
|
],
|
|
"type": [
|
|
{
|
|
"$ref": "#/definitions/default_3"
|
|
},
|
|
{
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "Indicates if a point can be moved and configures the modalities.\n\nA feature can be moved by MapComplete if:\n\n- It is a point\n- The point is _not_ part of a way or a a relation.\n\nOff by default. Can be enabled by setting this flag or by configuring."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"allowMove",
|
|
"enableImproveAccuracy"
|
|
],
|
|
"type": "boolean",
|
|
"description": "One default reason to move a point is to improve accuracy.\nSet to false to disable this reason"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"allowMove",
|
|
"enableRelocation"
|
|
],
|
|
"type": "boolean",
|
|
"description": "One default reason to move a point is because it has relocated\nSet to false to disable this reason"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"allowSplit"
|
|
],
|
|
"type": "boolean",
|
|
"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"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units"
|
|
],
|
|
"type": "array",
|
|
"description": "In some cases, a value is represented in a certain unit (such as meters for heigt/distance/..., km/h for speed, ...)\n\nSometimes, multiple denominations are possible (e.g. km/h vs mile/h; megawatt vs kilowatt vs gigawatt for power generators, ...)\n\nThis brings in some troubles, as there are multiple ways to write it (no denomitation, 'm' vs 'meter' 'metre', ...)\n\nNot only do we want to write consistent data to OSM, we also want to present this consistently to the user.\nThis is handled by defining units.\n\n# Rendering\n\nTo render a value with long (human) denomination, use {canonical(key)}\n\n# Usage\n\nFirst of all, you define which keys have units applied, for example:\n\n```\nunits: [\n appliesTo: [\"maxspeed\", \"maxspeed:hgv\", \"maxspeed:bus\"]\n applicableUnits: [\n ...\n ]\n]\n```\n\nApplicableUnits defines which is the canonical extension, how it is presented to the user, ...:\n\n```\napplicableUnits: [\n{\n canonicalDenomination: \"km/h\",\n alternativeDenomination: [\"km/u\", \"kmh\", \"kph\"]\n default: true,\n human: {\n en: \"kilometer/hour\",\n nl: \"kilometer/uur\"\n },\n humanShort: {\n en: \"km/h\",\n nl: \"km/u\"\n }\n},\n{\n canoncialDenomination: \"mph\",\n ... similar for miles an hour ...\n}\n]\n```\n\n\nIf this is defined, then every key which the denominations apply to (`maxspeed`, `maxspeed:hgv` and `maxspeed:bus`) will be rewritten at the metatagging stage:\nevery value will be parsed and the canonical extension will be added add presented to the other parts of the code.\n\nAlso, if a freeform text field is used, an extra dropdown with applicable denominations will be given"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"appliesToKey"
|
|
],
|
|
"type": "array",
|
|
"description": "Every key from this list will be normalized"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"eraseInvalidValues"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, invalid values will be erased in the MC application (but not in OSM of course!)\nBe careful with setting this"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits"
|
|
],
|
|
"type": "array",
|
|
"description": "The possible denominations"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"canonicalDenomination"
|
|
],
|
|
"type": "string",
|
|
"description": "The canonical value which will be added to the value in OSM.\ne.g. \"m\" for meters\nIf the user inputs '42', the canonical value will be added and it'll become '42m'.\n\nImportant: often, _no_ canonical values are expected, e.g. in the case of 'maxspeed' where 'km/h' is the default.\nIn this case, an empty string should be used"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"canonicalDenominationSingular"
|
|
],
|
|
"type": "string",
|
|
"description": "The canonical denomination in the case that the unit is precisely '1'"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"alternativeDenomination"
|
|
],
|
|
"type": "array",
|
|
"description": "A list of alternative values which can occur in the OSM database - used for parsing."
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"human"
|
|
],
|
|
"description": "The value for humans in the dropdown. This should not use abbreviations and should be translated, e.g.\n{\n \"en\": \"meter\",\n \"fr\": \"metre\"\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"humanSingular"
|
|
],
|
|
"description": "The value for humans in the dropdown. This should not use abbreviations and should be translated, e.g.\n{\n \"en\": \"minute\",\n \"nl\": \"minuut\"x²\n}"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"prefix"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set, then the canonical value will be prefixed instead, e.g. for '€'\nNote that if all values use 'prefix', the dropdown might move to before the text field"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"units",
|
|
"applicableUnits",
|
|
"default"
|
|
],
|
|
"type": "boolean",
|
|
"description": "The default interpretation - only one can be set.\nIf none is set, the first unit will be considered the default interpretation of a value without a unit"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"syncSelection"
|
|
],
|
|
"type": "string",
|
|
"description": "If set, synchronizes whether or not this layer is enabled.\n\nno: Do not sync at all, always revert to default\nlocal: keep selection on local storage\ntheme-only: sync via OSM, but this layer will only be toggled in this theme\nglobal: all layers with this ID will be synced accross all themes"
|
|
},
|
|
{
|
|
"path": [
|
|
"layers",
|
|
"hideTagRenderingsWithLabels"
|
|
],
|
|
"type": "array",
|
|
"description": "TagRenderings with any of these labels will be removed from the layer.\nNote that the 'id' and 'group' are considered labels too"
|
|
},
|
|
{
|
|
"path": [
|
|
"clustering"
|
|
],
|
|
"type": [
|
|
{
|
|
"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 250",
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"enum": [
|
|
false
|
|
],
|
|
"type": "boolean"
|
|
}
|
|
],
|
|
"description": "If defined, data will be clustered.\nDefaults to {maxZoom: 16, minNeeded: 500}"
|
|
},
|
|
{
|
|
"path": [
|
|
"clustering",
|
|
"maxZoom"
|
|
],
|
|
"type": "number",
|
|
"description": "All zoom levels above 'maxzoom' are not clustered anymore.\nDefaults to 18"
|
|
},
|
|
{
|
|
"path": [
|
|
"clustering",
|
|
"minNeededElements"
|
|
],
|
|
"type": "number",
|
|
"description": "The number of elements per tile needed to start clustering\nIf clustering is defined, defaults to 250"
|
|
},
|
|
{
|
|
"path": [
|
|
"customCss"
|
|
],
|
|
"type": "string",
|
|
"description": "The URL of a custom CSS stylesheet to modify the layout"
|
|
},
|
|
{
|
|
"path": [
|
|
"hideFromOverview"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to true, this layout will not be shown in the overview with more themes"
|
|
},
|
|
{
|
|
"path": [
|
|
"lockLocation"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "number"
|
|
},
|
|
{
|
|
"type": "number"
|
|
}
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
}
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"description": "If set to true, the basemap will not scroll outside of the area visible on initial zoom.\nIf set to [[lon, lat], [lon, lat]], the map will not scroll outside of those bounds.\nOff by default, which will enable panning to the entire world"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableUserBadge"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to false, disables logging in.\nThe userbadge will be hidden, all login-buttons will be hidden and editing will be disabled"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableShareScreen"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If false, hides the tab 'share'-tab in the welcomeMessage"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableMoreQuests"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Hides the tab with more themes in the welcomeMessage"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableLayers"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If false, the layer selection/filter view will be hidden\nThe corresponding URL-parameter is 'fs-filters' instead of 'fs-layers'"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableSearch"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to false, hides the search bar"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableAddNewPoints"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to false, the ability to add new points or nodes will be disabled.\nEditing already existing features will still be possible"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableGeolocation"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to false, the 'geolocation'-button will be hidden."
|
|
},
|
|
{
|
|
"path": [
|
|
"enableBackgroundLayerSelection"
|
|
],
|
|
"type": "boolean",
|
|
"description": "Enable switching the backgroundlayer.\nIf false, the quickswitch-buttons are removed (bottom left) and the dropdown in the layer selection is removed as well"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableShowAllQuestions"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to true, will show _all_ unanswered questions in a popup instead of just the next one"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableDownload"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to true, download button for the data will be shown (offers downloading as geojson and csv)"
|
|
},
|
|
{
|
|
"path": [
|
|
"enablePdfDownload"
|
|
],
|
|
"type": "boolean",
|
|
"description": "If set to true, exporting a pdf is enabled"
|
|
},
|
|
{
|
|
"path": [
|
|
"enableNoteImports"
|
|
],
|
|
"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.\n\nDefault is true for official layers and false for unofficial (sideloaded) layers"
|
|
},
|
|
{
|
|
"path": [
|
|
"overpassUrl"
|
|
],
|
|
"type": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Set one or more overpass URLs to use for this theme.."
|
|
},
|
|
{
|
|
"path": [
|
|
"overpassTimeout"
|
|
],
|
|
"type": "number",
|
|
"description": "Set a different timeout for overpass queries - in seconds. Default: 30s"
|
|
}
|
|
] |