Small improvements to the GRB theme
This commit is contained in:
parent
edb5b06f12
commit
c3f3f69c3b
1 changed files with 26 additions and 7 deletions
|
@ -374,7 +374,13 @@
|
||||||
"tagRenderings+": [
|
"tagRenderings+": [
|
||||||
{
|
{
|
||||||
"id": "render_embedded",
|
"id": "render_embedded",
|
||||||
"render": "Dit CRAB-adres ligt in <a href='https://osm.org/{_embedding_id}' target='_blank'>OSM-gebouw {_embedding_id}</a>"
|
"render": "Dit CRAB-adres ligt in <a href='https://osm.org/{_embedding_id}' target='_blank'>OSM-gebouw {_embedding_id}</a>",
|
||||||
|
"mappings": [{
|
||||||
|
"if": "_embedding_id=",
|
||||||
|
"then": {
|
||||||
|
"nl": "Geen omliggend OSM-gebouw gevonden"
|
||||||
|
}
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "embedded_address",
|
"id": "embedded_address",
|
||||||
|
@ -409,18 +415,31 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "import-button",
|
"id": "import-button",
|
||||||
"render": "{import_button(address, addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL,Voeg dit adres als een nieuw adrespunt toe,,osm-buildings,5)}",
|
"render": {
|
||||||
"condition": {
|
"special": {
|
||||||
"and": [
|
"type": "import_button",
|
||||||
"_embedding_id!=",
|
"targetLayer": "address",
|
||||||
|
"tags": "addr:street=$STRAATNM; addr:housenumber=$_HNRLABEL",
|
||||||
|
"text": {
|
||||||
|
"nl": "Voeg dit adres als een nieuw adrespunt toe"
|
||||||
|
},
|
||||||
|
"snap_onto_layers": "osm-buildings"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"mappings": [
|
||||||
{
|
{
|
||||||
|
"if": "_embedding_id=",
|
||||||
|
"then": {
|
||||||
|
"nl": "Geen omliggend OSM-gebouw gevonden. Een omliggend gebouw is nodig om dit punt als adres punt toe te voegen. <div class=subtle>Importeer eerst de gebouwen. Vernieuw dan de pagina om losse adressen toe te voegen</div>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"condition": {
|
||||||
"or": [
|
"or": [
|
||||||
"_embedding_street!:={STRAATNM}",
|
"_embedding_street!:={STRAATNM}",
|
||||||
"_embedding_nr!:={_HNRLABEL}"
|
"_embedding_nr!:={_HNRLABEL}"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue