Fix rendering of embedded crab addresses

This commit is contained in:
Pieter Vander Vennet 2021-12-07 02:32:37 +01:00
parent c49c0eaf16
commit d6f2089b6d

View file

@ -386,8 +386,12 @@
"tagRenderings+": [ "tagRenderings+": [
{ {
"id": "render_embedded", "id": "render_embedded",
"render": "Dit CRAB-adres ligt in een OSM-gebouw. Het OSM-gebouw heeft geen volledig adres", "render": "Dit CRAB-adres ligt in <a href='https://osm.org/{_embedding_id}' target='_blank'>OSM-gebouw {_embedding_id}</a>"
"mapping": [ },
{
"id": "embedded_address",
"render": "Het omliggende OSM-gebouw heeft geen volledig address",
"mappings": [
{ {
"if": { "if": {
"and": [ "and": [
@ -403,15 +407,30 @@
{ {
"id": "apply-button", "id": "apply-button",
"render": "{tag_apply(addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Apply this address on the OSM-building,,_embedding_id)}", "render": "{tag_apply(addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Apply this address on the OSM-building,,_embedding_id)}",
"condition": "_embedding_id!=" "condition": {
"and": [
"_embedding_id!=",
{
"or": [
"_embedding_street!:={STRAATNM}",
"_embedding_nr!:={_HNRLABEL}"
]
}
]
}
}, },
{ {
"id": "import-button", "id": "import-button",
"render": "{import_button(OSM-buildings, addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Voeg dit adres als een nieuw adrespunt toe,,,OSM-buildings,5)}", "render": "{import_button(OSM-buildings, addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Voeg dit adres als een nieuw adrespunt toe,,,OSM-buildings,5)}",
"condition": { "condition": {
"or": [ "and": [
"_embedding_street!:={STRAATNM}", "_embedding_id!=",
"_embedding_nr!:={$_HNRLABEL}" {
"or": [
"_embedding_street!:={STRAATNM}",
"_embedding_nr!:={_HNRLABEL}"
]
}
] ]
} }
} }