forked from MapComplete/MapComplete
Fixes to aed_brugge theme and UK-addresses-theme
This commit is contained in:
parent
8947aff7ae
commit
5bba0f0a9b
3 changed files with 41 additions and 79 deletions
|
@ -26,12 +26,46 @@
|
|||
},
|
||||
"calculatedTags": [
|
||||
"_closest_osm_aed=feat.closest('defibrillator')?.properties?.id",
|
||||
"_closest_osm_aed_distance=feat.distanceTo(feat.properties._closest_osm_aed) * 1000",
|
||||
"_closest_osm_aed_distance=feat.distanceTo(feat.properties._closest_osm_aed)",
|
||||
"_has_closeby_feature=Number(feat.properties._closest_osm_aed_distance) < 25 ? 'yes' : 'no'"
|
||||
],
|
||||
"title": "AED in Brugse dataset",
|
||||
"tagRenderings": [
|
||||
"all_tags"
|
||||
{
|
||||
"id": "status",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "status=oud",
|
||||
"then": "<div class='alert'>Dit datapunt is verouderd</div>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "has closeby",
|
||||
"render": "<div class='thanks'>Er is al een AED gekend in de buurt</div>",
|
||||
"condition": "_has_closeby_feature=yes"
|
||||
},
|
||||
{
|
||||
"id": "openbaar",
|
||||
"render": "Bevindt zich in een openbaar gebouw: <b>{Openbare AED Gebouw}</b> (geen lokaal bekend)",
|
||||
"condition": "Openbare AED Gebouw~*",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "Lokaal AED~*",
|
||||
"then": "Bevindt zich in een openbaar gebouw: <b>{Openbare AED Gebouw}</b> in lokaal <b>{Lokaal AED}</b>"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "addr",
|
||||
"#": "Yes, 'nummer' writes with three 'm's",
|
||||
"render": "Het adres is {Straat} {Nummmer} {Bus}"
|
||||
},
|
||||
{
|
||||
"id": "oh",
|
||||
"render": "De openingsuren zijn <b>{OPENINGSUREN}</b>",
|
||||
"condition": "OPENINGSUREN~*"
|
||||
}
|
||||
],
|
||||
"mapRendering": [
|
||||
{
|
||||
|
@ -46,10 +80,9 @@
|
|||
},
|
||||
"iconSize": "20,20,center",
|
||||
"location": [
|
||||
"point"
|
||||
"point","centroid"
|
||||
]
|
||||
},
|
||||
{}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
},
|
||||
"minzoom": 18,
|
||||
"calculatedTags": [
|
||||
"_has_address=feat.overlapWith('addresses').length > 0"
|
||||
"_has_address=feat.overlapWith('address').length > 0"
|
||||
],
|
||||
"#mapRendering": [
|
||||
{
|
||||
|
@ -126,11 +126,11 @@
|
|||
},
|
||||
{
|
||||
"id": "uk_addresses_import_button",
|
||||
"render": "{import_button(addresses,ref:inspireid=$inspireid, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}"
|
||||
"render": "{import_button(address,ref:inspireid=$inspireid, Add this address, ./assets/themes/uk_addresses/housenumber_add.svg)}"
|
||||
}
|
||||
],
|
||||
"calculatedTags": [
|
||||
"_embedding_object=feat.overlapWith('addresses')[0]?.feat?.properties ?? null",
|
||||
"_embedding_object=feat.overlapWith('address')[0]?.feat?.properties ?? null",
|
||||
"_embedding_object:addr:housenumber=JSON.parse(feat.properties._embedding_object)?.['addr:housenumber']",
|
||||
"_embedding_object:addr:street=JSON.parse(feat.properties._embedding_object)?.['addr:street']",
|
||||
"_embedding_inspire_polygon_has_address=feat.overlapWith('raw_inspire_polygons')[0]?.feat?.properties?._has_address",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue