POIs can display data from their outer walls

This commit is contained in:
Andrews Leruth 2022-07-18 09:31:54 +02:00
parent 07bf3e3d34
commit a5d80401a3
10 changed files with 76 additions and 46 deletions

View file

@ -140,7 +140,7 @@
},
"render": {
"en": "There are {capacity:disabled} disabled parking spots",
"nl": "Er zijn capacity:disabled} parkeerplaatsen voor gehandicapten"
"nl": "Er zijn {capacity:disabled} parkeerplaatsen voor gehandicapten"
}
},
{

View file

@ -51,7 +51,7 @@
],
"tagRenderings": [
{
"id": "Entrance_width",
"id": "_entrance:width",
"render": {
"en": "This door has a width of {canonical(_entrance:width)} meter",
"nl": "Deze deur heeft een breedte van {canonical(_entrance:width)} meter",

View file

@ -1,19 +1,13 @@
{
"id": "mapcomplete-changes",
"title": {
"en": "Changes made with MapComplete",
"nl": "Wijzigingen gemaakt met MapComplete",
"de": "Mit MapComplete vorgenommene Änderungen"
"en": "Changes made with MapComplete"
},
"shortDescription": {
"en": "Shows changes made by MapComplete",
"nl": "Toont wijzigingen gemaakt met MapComplete",
"de": "Zeigt die mit MapComplete vorgenommenen Änderungen"
"en": "Shows changes made by MapComplete"
},
"description": {
"en": "This maps shows all the changes made with MapComplete",
"nl": "Deze kaart toont alle wijzigingen die met MapComplete werden gemaakt",
"de": "Diese Karte zeigt alle mit MapComplete vorgenommenen Änderungen"
"en": "This maps shows all the changes made with MapComplete"
},
"maintainer": "",
"icon": "./assets/svg/logo.svg",
@ -28,8 +22,7 @@
{
"id": "mapcomplete-changes",
"name": {
"en": "Changeset centers",
"de": "Zentrum der Änderungssätze"
"en": "Changeset centers"
},
"minzoom": 0,
"source": {
@ -43,47 +36,35 @@
],
"title": {
"render": {
"en": "Changeset for {theme}",
"nl": "Wijzigingset voor {theme}",
"de": "Änderungssatz für {theme}"
"en": "Changeset for {theme}"
}
},
"description": {
"en": "Shows all MapComplete changes",
"nl": "Toont alle wijzigingen met MapComplete",
"de": "Zeigt alle MapComplete Änderungen"
"en": "Shows all MapComplete changes"
},
"tagRenderings": [
{
"id": "render_id",
"render": {
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"nl": "Wijzigingset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>",
"de": "Änderungssatz <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
"en": "Changeset <a href='https://openstreetmap.org/changeset/{id}' target='_blank'>{id}</a>"
}
},
{
"id": "contributor",
"render": {
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>",
"nl": "Wijziging gemaakt door <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>",
"de": "Geändert von <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
"en": "Change made by <a href='https://openstreetmap.org/user/{_last_edit:contributor}' target='_blank'>{_last_edit:contributor}</a>"
}
},
{
"id": "theme",
"render": {
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"nl": "Wijziging met thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>",
"de": "Änderung mit Thema <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
"en": "Change with theme <a href='https://mapcomplete.osm.be/{theme}'>{theme}</a>"
},
"mappings": [
{
"if": "theme~http.*",
"then": {
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>",
"nl": "Wijziging met <b>officieus</b> thema <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>",
"de": "Änderung mit <b>inoffiziellem</b> Thema <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
"en": "Change with <b>unofficial</b> theme <a href='https://mapcomplete.osm.be/theme.html?userlayout={theme}'>{theme}</a>"
}
}
]
@ -383,9 +364,7 @@
}
],
"question": {
"en": "Themename contains {search}",
"nl": "Themanaam bevat {search}",
"de": "Themenname enthält {search}"
"en": "Themename contains {search}"
}
}
]
@ -401,9 +380,7 @@
}
],
"question": {
"en": "Made by contributor {search}",
"nl": "Gemaakt door bijdrager {search}",
"de": "Erstellt von {search}"
"en": "Made by contributor {search}"
}
}
]
@ -419,9 +396,7 @@
}
],
"question": {
"en": "<b>Not</b> made by contributor {search}",
"nl": "<b>Niet</b> gemaakt door bijdrager {search}",
"de": "<b>Nicht</b> erstellt von {search}"
"en": "<b>Not</b> made by contributor {search}"
}
}
]
@ -436,9 +411,7 @@
{
"id": "link_to_more",
"render": {
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>",
"nl": "Meer statistieken kunnen <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a> gevonden worden",
"de": "Weitere Statistiken finden Sie <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>hier</a>"
"en": "More statistics can be found <a href='https://github.com/pietervdvn/MapComplete/tree/develop/Docs/Tools/graphs' target='_blank'>here</a>"
}
},
{

View file

@ -4,7 +4,7 @@
"en": "OnWheels"
},
"description": {
"en": "On this map, publicly wheelchair accessible places are shown and can be easily added"
"en": "On this map, publicly wheelchair accessible places are shown and can be easily added"
},
"maintainer": "MapComplete",
"icon": "./assets/themes/onwheels/crest.svg",
@ -31,6 +31,34 @@
"walls_and_buildings"
],
"overrideAll": {
"+calculatedTags": [
"_poi_walls_and_buildings_entrance_properties=feat.closestn('walls_and_buildings', 1, undefined, 1000).map(w => ({id: w.feat.properties.id, width: w.feat.properties['_entrance:width']}))[0]",
"_poi_entrance:width=JSON.parse(feat.properties._poi_walls_and_buildings_entrance_properties)?.width"
],
"+tagRenderings": [
{
"id": "_poi_entrance:width",
"render": {
"en": "This door has a width of {canonical(_poi_entrance:width)} meter",
"nl": "Deze deur heeft een breedte van {canonical(_poi_entrance:width)} meter",
"de": "Diese Tür hat eine Durchgangsbreite von {canonical(_poi_entrance:width)} Meter",
"es": "Esta puerta tiene una ancho de {canonical(_poi_entrance:width)} metros"
},
"freeform": {
"key": "_poi_entrance:width",
"type": "distance"
},
"mappings": [
{
"if": "_poi_entrance:width=",
"then": {
"en": "This entrance has no width information"
}
}
]
}
],
"minzoom": "15",
"mapRendering": [
{

View file

@ -1,5 +1,5 @@
{
"name": "index",
"name": "MapComplete",
"short_name": "MapComplete",
"start_url": "index.html",
"lang": "en",

View file

@ -6139,6 +6139,11 @@
},
"walls_and_buildings": {
"description": "Spezielle eingebaute Ebene, die alle Wände und Gebäude bereitstellt. Diese Ebene ist in Voreinstellungen für Objekte nützlich, 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 eingeschaltet werden.",
"tagRenderings": {
"Entrance_width": {
"render": "Diese Tür hat eine Durchgangsbreite von {canonical(_entrance:width)} Meter"
}
},
"title": {
"render": "Wand oder Gebäude"
}

View file

@ -6542,6 +6542,16 @@
},
"walls_and_buildings": {
"description": "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.",
"tagRenderings": {
"Entrance_width": {
"mappings": {
"0": {
"then": "This entrance has no width information"
}
},
"render": "This door has a width of {canonical(_entrance:width)} meter"
}
},
"title": {
"render": "Wall or building"
}

View file

@ -3985,6 +3985,11 @@
}
},
"walls_and_buildings": {
"tagRenderings": {
"Entrance_width": {
"render": "Esta puerta tiene una ancho de {canonical(_entrance:width)} metros"
}
},
"title": {
"render": "Pared o edificio"
}

View file

@ -6228,6 +6228,11 @@
},
"walls_and_buildings": {
"description": "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.",
"tagRenderings": {
"Entrance_width": {
"render": "Deze deur heeft een breedte van {canonical(_entrance:width)} meter"
}
},
"title": {
"render": "Muur of gebouw"
}
@ -6493,4 +6498,4 @@
}
}
}
}
}

View file

@ -974,6 +974,10 @@
"shortDescription": "Map all the trees",
"title": "Trees"
},
"walls_and_buildings": {
"description": "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.",
"title": "Walls and buildings"
},
"waste": {
"description": "Map showing waste baskets and recycling facilities.",
"title": "Waste"