Browse Source

culture: include sundial and orthodox clocks

cycle_infrastructure
parent
commit
df7f9ca089
  1. 9
      culture.json

9
culture.json

@ -30,13 +30,16 @@
"node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", "node[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
"way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", "way[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
"relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];", "relation[tourism~\"^(artwork|gallery|museum|theme_park)$\"];",
"nwr[amenity=clock][display~\"^(sundial|unorthodox)$\"];",
"nwr[amenity=clock][\"display:sundial\"];",
"nwr[amenity=clock][\"display:unorthodox\"];",
"nwr[shop~\"^(art)$\"];", "nwr[shop~\"^(art)$\"];",
")" ")"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre' ] %}",
"{% if tags.amenity in [ 'arts_centre', 'cinema', 'community_centre', 'fountain', 'studio', 'theatre', 'clock' ] %}",
"{% set key = 'amenity' %}", "{% set key = 'amenity' %}",
"{% set value = tags.amenity %}", "{% set value = tags.amenity %}",
"{% elseif tags.tourism %}", "{% elseif tags.tourism %}",
@ -50,6 +53,9 @@
"description": [ "description": [
"{% if key == 'shop' %}", "{% if key == 'shop' %}",
" {{ keyTrans(key) }} ({{ tagTrans(key, value) }})", " {{ keyTrans(key) }} ({{ tagTrans(key, value) }})",
"{% elseif tags.amenity == 'clock' %}",
" {% if tags.display == 'sundial' or attribute(tags, 'display:sundial') %}{{ tagTrans('amenity', 'clock display=sundial') }}{% endif %}",
" {% if tags.display == 'unorthodox' or attribute(tags, 'display:unorthodox') %}{{ tagTrans('amenity', 'clock display=unorthodox') }}{% endif %}",
"{% else %}", "{% else %}",
" {{ tagTrans(key, value) }}", " {{ tagTrans(key, value) }}",
"{% endif %}", "{% endif %}",
@ -102,6 +108,7 @@
"const": { "const": {
"amenity=arts_centre": "🎨", "amenity=arts_centre": "🎨",
"amenity=cinema": "🎦", "amenity=cinema": "🎦",
"amenity=clock": "<i class=\"fas fa-clock\"></i>",
"amenity=community_centre": "<i class=\"fas fa-users\" aria-hidden=\"true\"></i>", "amenity=community_centre": "<i class=\"fas fa-users\" aria-hidden=\"true\"></i>",
"amenity=fountain": "⛲", "amenity=fountain": "⛲",
"amenity=studio": "<i class=\"fas fa-microphone\"></i>", "amenity=studio": "<i class=\"fas fa-microphone\"></i>",

Loading…
Cancel
Save