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" ,
2022-09-10 13:25:18 +02:00
"fr" : "Mur ou bâtiment" ,
"da" : "Mur eller bygning"
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." ,
2022-09-18 20:04:20 +02:00
"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." ,
"da" : "Specielt indbygget lag giver alle vægge og bygninger. Dette lag er nyttigt i forudindstillinger til objekter, der kan placeres mod vægge (f.eks. AED'er, postkasser, indgange, adresser, overvågningskameraer, …). Dette lag er usynligt som standard og kan ikke skiftes af brugeren."
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" : [
2021-12-05 02:06:14 +01:00
{
"color" : {
"render" : "#fff"
} ,
"fill" : "no" ,
"width" : {
"render" : "3"
}
} ,
2021-12-03 02:27:28 +01:00
{
"color" : {
"render" : "#333"
} ,
"fill" : "no" ,
"width" : {
2021-12-05 02:06:14 +01:00
"render" : "2"
2021-12-03 02:27:28 +01:00
}
}
2022-07-12 10:25:31 +02:00
] ,
"calculatedTags" : [
2022-07-29 20:04:36 +02:00
"_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"
2022-07-29 20:04:36 +02:00
] ,
"applicableUnits" : [
{
2022-08-18 19:17:15 +02:00
"useIfNoUnitGiven" : true ,
2022-07-29 20:04:36 +02:00
"canonicalDenomination" : "m" ,
"alternativeDenomination" : [
"meter"
] ,
"human" : {
"en" : "meter" ,
"fr" : "mètre" ,
2022-09-10 13:25:18 +02:00
"de" : "Meter" ,
"da" : "meter"
2022-07-29 20:04:36 +02:00
}
} ,
{
2022-08-18 19:17:15 +02:00
"useAsDefaultInput" : true ,
2022-07-29 20:04:36 +02:00
"canonicalDenomination" : "cm" ,
"alternativeDenomination" : [
"centimeter" ,
"cms"
] ,
"human" : {
2022-08-22 22:31:05 +02:00
"en" : "centimeter" ,
"fr" : "centimètre" ,
2022-09-10 13:25:18 +02:00
"de" : "Zentimeter" ,
"da" : "centimeter"
2022-07-29 20:04:36 +02:00
}
}
]
}
2022-07-13 14:33:53 +02:00
] ,
"tagRenderings" : [
{
2022-07-29 20:04:36 +02:00
"id" : "entrance_info" ,
2022-07-13 14:33:53 +02:00
"render" : {
2022-07-29 20:04:36 +02:00
"before" : {
2022-08-05 12:45:51 +02:00
"en" : "<h3>Entrances</h3>This building has {_entrances_count} entrances:" ,
2022-09-10 13:25:18 +02:00
"de" : "<h3>Eingänge</h3>Das Gebäude hat {_entrances_count} Eingänge:" ,
"da" : "<h3>Indgange</h3>Denne bygning har {_entrances_count} indgange:"
2022-07-29 20:04:36 +02:00
} ,
"after" : {
2022-08-05 12:45:51 +02:00
"en" : "{_entrances_count_without_width_count} entrances don't have width information yet" ,
2022-09-10 13:25:18 +02:00
"de" : "{_entrances_count_without_width_count} Eingänge haben keine Angaben zur Breite" ,
"da" : "{_entrances_count_without_width_count} indgange har endnu ikke oplysninger om bredde"
2022-07-29 20:04:36 +02:00
} ,
"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)}" ,
2022-09-10 13:25:18 +02:00
"de" : "Ein <a href='#{id}'>Eingang</a> von {canonical(width)}" ,
"da" : "En <a href='#{id}'>indgang</a> på {canonical(width)}"
2022-07-29 20:04:36 +02:00
}
}
2022-07-13 14:33:53 +02:00
} ,
"mappings" : [
{
2022-07-29 20:04:36 +02:00
"if" : "_entrances_count=0" ,
"then" : {
2022-08-05 12:45:51 +02:00
"en" : "No entrance has been marked" ,
2022-09-10 13:25:18 +02:00
"de" : "Es wurde kein Eingang markiert" ,
"da" : "Der er ikke markeret nogen indgang"
2022-07-29 20:04:36 +02:00
}
} ,
{
"if" : "_entrances_count_without_width:=_entrances_count" ,
2022-07-13 14:33:53 +02:00
"then" : {
2022-08-05 12:45:51 +02:00
"en" : "None of the {_entrance_count} entrances have width information yet" ,
2022-09-10 13:25:18 +02:00
"de" : "Keiner der {_entrance_count} Eingänge hat bisher Angaben zur Breite" ,
"da" : "Ingen af {_entrance_count}-indgangene har oplysninger om bredde endnu"
2022-07-13 14:33:53 +02:00
}
}
]
2022-07-29 20:04:36 +02:00
} ,
{
"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~*"
2022-07-13 14:33:53 +02:00
}
2021-12-03 02:27:28 +01:00
]
}