mapcomplete/assets/layers/walls_and_buildings/walls_and_buildings.json

137 lines
4.9 KiB
JSON
Raw Normal View History

2021-12-03 02:27:28 +01:00
{
"id": "walls_and_buildings",
"minzoom": 18,
"title": {
"render": {
2022-04-03 03:17:10 +02:00
"en": "Wall or building",
2022-04-18 01:47:54 +02:00
"nl": "Muur of gebouw",
2022-06-19 22:13:38 +02:00
"de": "Wand oder Gebäude",
2022-07-27 10:13:31 +02:00
"es": "Pared o edificio",
"fr": "Mur ou bâtiment"
2021-12-03 02:27:28 +01:00
}
},
"description": {
2022-06-01 20:21:16 +02:00
"en": "Special builtin layer providing all walls and buildings. This layer is useful in presets for objects which can be placed against walls (e.g. AEDs, postboxes, entrances, addresses, surveillance cameras, …). This layer is invisible by default and not toggleable by the user.",
2022-06-22 18:56:02 +02:00
"nl": "Speciale laag met alle muren en gebouwen. Deze laag is nuttig om objecten toe te voegen die met een muur verbonden zijn (zoals AEDs, brievenbussen, adressen, bewakingscamera's,…). Deze laag is standaard onzichtbaar en kan niet aangezet worden door de gebruiker.",
2022-07-27 10:13:31 +02:00
"de": "Spezielle Ebene, die alle Wände und Gebäude bereitstellt. Diese Ebene ist nützlich in Voreinstellungen für Objekte, die an Wänden platziert werden können (z. B. AEDs, Briefkästen, Eingänge, Adressen, Überwachungskameras, ...). Diese Ebene ist standardmäßig unsichtbar und kann vom Benutzer nicht umgeschaltet werden.",
"fr": "Couche intégrée spéciale fournissant tous les murs et bâtiments. Cette couche est utile dans les préréglages pour les objets qui peuvent être placés contre les murs (par exemple, les DEA, les boîtes aux lettres, les entrées, les adresses, les caméras de surveillance, …). Ce calque est invisible par défaut et non inchangeable par l'utilisateur."
2021-12-03 02:27:28 +01:00
},
"source": {
"osmTags": {
"or": [
"barrier=wall",
"building~*"
]
}
},
"passAllFeatures": true,
2022-07-18 10:15:17 +02:00
"shownByDefault": false,
2021-12-03 02:27:28 +01:00
"mapRendering": [
{
"color": {
"render": "#fff"
},
"fill": "no",
"width": {
"render": "3"
}
},
2021-12-03 02:27:28 +01:00
{
"color": {
"render": "#333"
},
"fill": "no",
"width": {
"render": "2"
2021-12-03 02:27:28 +01:00
}
}
2022-07-12 10:25:31 +02:00
],
"calculatedTags": [
"_entrance_properties=feat.overlapWith('entrance')?.map(e => e.feat.properties)?.filter(p => p !== undefined && p.indoor !== 'door')",
"_entrance_properties_with_width=feat.get('_entrance_properties')?.filter(p => p['width'] !== undefined)",
"_entrances_count=feat.get('_entrance_properties').length",
"_entrances_count_without_width_count= feat.get('_entrances_count') - feat.get('_entrance_properties_with_width').length",
"_biggest_width= Math.max( feat.get('_entrance_properties').map(p => p.width))",
"_biggest_width_properties= /* Can be a list! */ feat.get('_entrance_properties').filter(p => p.width === feat.get('_biggest_width'))",
"_biggest_width_id=feat.get('_biggest_width_properties').id"
],
"units": [
{
"appliesToKey": [
2022-07-30 14:50:35 +02:00
"width",
"_biggest_width"
],
"applicableUnits": [
{
"useIfNoUnitGiven": true,
"canonicalDenomination": "m",
"alternativeDenomination": [
"meter"
],
"human": {
"en": "meter",
"fr": "mètre",
"de": "Meter"
}
},
{
"useAsDefaultInput": true,
"canonicalDenomination": "cm",
"alternativeDenomination": [
"centimeter",
"cms"
],
"human": {
2022-08-22 22:31:05 +02:00
"en": "centimeter",
"fr": "centimètre",
"de": "Zentimeter"
}
}
]
}
],
"tagRenderings": [
{
"id": "entrance_info",
"render": {
"before": {
2022-08-05 12:45:51 +02:00
"en": "<h3>Entrances</h3>This building has {_entrances_count} entrances:",
"de": "<h3>Eingänge</h3>Das Gebäude hat {_entrances_count} Eingänge:"
},
"after": {
2022-08-05 12:45:51 +02:00
"en": "{_entrances_count_without_width_count} entrances don't have width information yet",
"de": "{_entrances_count_without_width_count} Eingänge haben keine Angaben zur Breite"
},
"special": {
"type": "multi",
"key": "_entrance_properties_with_width",
"tagrendering": {
2022-08-05 12:45:51 +02:00
"en": "An <a href='#{id}'>entrance</a> of {canonical(width)}",
"de": "Ein <a href='#{id}'>Eingang</a> von {canonical(width)}"
}
}
},
"mappings": [
{
"if": "_entrances_count=0",
"then": {
2022-08-05 12:45:51 +02:00
"en": "No entrance has been marked",
"de": "Es wurde kein Eingang markiert"
}
},
{
"if": "_entrances_count_without_width:=_entrances_count",
"then": {
2022-08-05 12:45:51 +02:00
"en": "None of the {_entrance_count} entrances have width information yet",
"de": "Keiner der {_entrance_count} Eingänge hat bisher Angaben zur Breite"
}
}
]
},
{
"id": "biggest_width",
"render": "The <a href='#{_biggest_width_id}'>entrance with the biggest width</a> is {canonical(_biggest_width)} wide",
"condition": "_biggest_width_id~*"
}
2021-12-03 02:27:28 +01:00
]
}