parent
commit
dc6c4d253c
  1. 15
      buildings-height.json
  2. 18
      buildings-start_date.json
  3. 14
      car_amenities.json
  4. 3
      car_maxspeed.json
  5. 2
      car_routes.json
  6. 37
      communication.json
  7. 3
      culture_religion.json
  8. 6
      cycle_amenities.json
  9. 48
      cycle_routes.json
  10. 14
      detailsBody.html
  11. 1
      gastro.json
  12. 28
      heritage.json
  13. 48
      hiking_routes.json
  14. 1
      lang/de.json
  15. 1
      lang/en.json
  16. 2
      mtb-routes.json
  17. 7
      natural.json
  18. 14
      popupBody.html
  19. 2
      power_routes.json
  20. 26
      pt.json
  21. 1
      public.json
  22. 11
      railway-electrification.json
  23. 5
      railway-gauge.json
  24. 2
      railway-infrastructure.json
  25. 2
      railway-routes.json
  26. 8
      religion.json
  27. 14
      sport.json
  28. 6
      swimming_bathing.json

15
buildings-height.json

@ -34,6 +34,21 @@
"{% endif %}" "{% endif %}"
], ],
"description": [ "description": [
"{% if tags.building == 'yes' and tags.military %}",
"{{ tagTrans('building', 'military') }}",
"{% elseif tags.building == 'yes' %}",
"{{ keyTrans('building') }}",
"{% else %}",
"{{ tagTransList('building', tags.building) }}",
"{% endif %}",
"{% if tags.building == 'construction' and tags.construction %}",
"({{ tagTransList('building', tags.construction) }})",
"{% endif %}",
"{% if tags.building in [ 'yes', 'military' ] and tags.military %}",
"({{ tagTransList('military', tags.military) }})",
"{% endif %}"
],
"details": [
"{% if tags.height is defined %}", "{% if tags.height is defined %}",
" {% if tags.height|matches('(m|ft)$') %}{{ tags.height -}}", " {% if tags.height|matches('(m|ft)$') %}{{ tags.height -}}",
" {% else %}{{ tags.height }} m", " {% else %}{{ tags.height }} m",

18
buildings-start_date.json

@ -16,6 +16,9 @@
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% set type = tags.building|split(';')[0] %}",
"{% if tags.military %}{% set type = 'military' %}{% endif %}",
"",
"{% set start_date = tags.start_date %}", "{% set start_date = tags.start_date %}",
"{% if attribute(tags, 'building:start_date') %}{% set start_date = attribute(tags, 'building:start_date') %}{% endif %}", "{% if attribute(tags, 'building:start_date') %}{% set start_date = attribute(tags, 'building:start_date') %}{% endif %}",
"{# Deprecated tags #}", "{# Deprecated tags #}",
@ -59,6 +62,21 @@
"{% endif %}" "{% endif %}"
], ],
"description": [ "description": [
"{% if tags.building == 'yes' and tags.military %}",
"{{ tagTrans('building', 'military') }}",
"{% elseif tags.building == 'yes' %}",
"{{ keyTrans('building') }}",
"{% else %}",
"{{ tagTransList('building', tags.building) }}",
"{% endif %}",
"{% if tags.building == 'construction' and tags.construction %}",
"({{ tagTransList('building', tags.construction) }})",
"{% endif %}",
"{% if tags.building in [ 'yes', 'military' ] and tags.military %}",
"({{ tagTransList('military', tags.military) }})",
"{% endif %}"
],
"details": [
"{% if start_date %}", "{% if start_date %}",
"{{ start_date|osmFormatDate({ format: 'short' }) }}", "{{ start_date|osmFormatDate({ format: 'short' }) }}",
"{% else %}", "{% else %}",

14
car_amenities.json

@ -17,18 +17,16 @@
"query": { "query": {
"13": [ "13": [
"(", "(",
"node[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"way[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"relation[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"node[amenity~\"^(charging_station)$\"][car!=\"no\"];",
"node[amenity~\"^(charging_station)$\"][motorcycle!=\"no\"];",
"nwr[amenity~\"^(car_rental|car_sharing|fuel)$\"];",
"nwr[amenity~\"^(charging_station)$\"][motorcar][motorcar!=\"no\"];",
"nwr[amenity~\"^(charging_station)$\"][motorcycle][motorcycle!=\"no\"];",
")" ")"
], ],
"16": [ "16": [
"(", "(",
"node[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
"way[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
"relation[amenity~\"^(car_rental|car_sharing|car_wash|charging_station|fuel|motorcycle_parking|parking)$\"];",
"nwr[amenity~\"^(car_rental|car_sharing|car_wash|fuel|motorcycle_parking|parking)$\"];",
"nwr[amenity~\"^(charging_station)$\"][motorcar][motorcar!=\"no\"];",
"nwr[amenity~\"^(charging_station)$\"][motorcycle][motorcycle!=\"no\"];",
")" ")"
] ]
}, },

3
car_maxspeed.json

@ -93,7 +93,8 @@
"{% set colorB = colorInterpolate(const.colorMap, (maxspeedBKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}", "{% set colorB = colorInterpolate(const.colorMap, (maxspeedBKmh - const.offsetColorSpeed) / const.highestColorSpeed) %}",
"{% endif %}" "{% endif %}"
], ],
"description": [
"description": "{{ tagTransList('highway', tags.highway) }}",
"details": [
"{% if maxspeedF or maxspeedB %}", "{% if maxspeedF or maxspeedB %}",
"<span style='color: {{ colorB }}'>{{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : const.colorOther[maxspeedB] ? tagTrans('maxspeed', maxspeedB) : maxspeedB|default(trans('unknown')) }}</span> / <span style='color: {{ colorF }}'>{{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : const.colorOther[maxspeedF] ? tagTrans('maxspeed', maxspeedF) : maxspeedF|default(trans('unknown')) }}</span> {{ unit }}", "<span style='color: {{ colorB }}'>{{ maxspeedB == 'other' ? attribute(tags, 'maxspeed:backward') : const.colorOther[maxspeedB] ? tagTrans('maxspeed', maxspeedB) : maxspeedB|default(trans('unknown')) }}</span> / <span style='color: {{ colorF }}'>{{ maxspeedF == 'other' ? attribute(tags, 'maxspeed:forward') : const.colorOther[maxspeedF] ? tagTrans('maxspeed', maxspeedF) : maxspeedF|default(trans('unknown')) }}</span> {{ unit }}",
"{% elseif maxspeed %}", "{% elseif maxspeed %}",

2
car_routes.json

@ -13,7 +13,7 @@
"feature": { "feature": {
"pre": "{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}", "pre": "{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}",
"description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}", "description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
"markerSymbol": "", "markerSymbol": "",
"styles": "" "styles": ""

37
communication.json

@ -22,23 +22,25 @@
"query": { "query": {
"13": [ "13": [
"(", "(",
"node[amenity~'^(post_office|internet_cafe)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
"nwr[amenity~'^(post_office|internet_cafe)$'];",
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
");" ");"
], ],
"16": [
"(node[amenity~'^(post_office|internet_cafe|post_box|telephone)$'];",
"way[amenity~'^(post_office|internet_cafe)$'];",
"relation[amenity~'^(post_office|internet_cafe)$'];",
"15": [
"(",
"nwr[amenity~'^(post_office|internet_cafe|post_box|parcel_locker|telephone)$'];",
"nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];", "nwr[office~\"^(telecommunication|it|newspaper|publisher|advertising_agency)$\"];",
"nwr[vending~\"^(|.*;)parcel_pickup(;.*|)$\"];",
"nwr[vending~\"^(|.*;)parcel_mail_in(;.*|)$\"];",
");" ");"
] ]
}, },
"feature": { "feature": {
"pre": [ "pre": [
"{% if tags.amenity %}",
"{% if tags.vending %}",
" {% set key = 'amenity' %}",
" {% set value = 'parcel_locker' %}",
"{% elseif tags.amenity %}",
" {% set key = 'amenity' %}", " {% set key = 'amenity' %}",
" {% set value = tags.amenity %}", " {% set value = tags.amenity %}",
"{% else %}", "{% else %}",
@ -46,12 +48,11 @@
" {% set value = tags.office %}", " {% set value = tags.office %}",
"{% endif %}" "{% endif %}"
], ],
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTrans('amenity', tags.amenity)) }}",
"description": [ "description": [
"{% if key == 'office' %}", "{% if key == 'office' %}",
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",
"{% else %}", "{% else %}",
" {{ tagTrans(key, value) }}",
" {{ tagTransList(key, value) }}",
"{% endif %}" "{% endif %}"
], ],
"body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}", "body": "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br/>{% endif %}",
@ -65,7 +66,7 @@
"info": [ "info": [
"<table>", "<table>",
"{% for kv, data in const %}", "{% for kv, data in const %}",
"{% if data.zoom <= map.zoom %}",
"{% if data.zoom <= map.zoom and not data.info_hide %}",
" <tr>", " <tr>",
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", " <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>",
" <td>", " <td>",
@ -94,6 +95,20 @@
"sign": "<i class='fa fa-laptop' aria-hidden='true'></i>", "sign": "<i class='fa fa-laptop' aria-hidden='true'></i>",
"zoom": 13 "zoom": 13
}, },
"amenity=parcel_locker": {
"sign": "<i class='fas fa-box'></i>",
"zoom": 16
},
"vending=parcel_pickup": {
"sign": "<i class='fas fa-box'></i>",
"info_hide": true,
"zoom": 16
},
"vending=parcel_mail_in": {
"sign": "<i class='fas fa-box'></i>",
"info_hide": true,
"zoom": 16
},
"office=telecommunication": { "office=telecommunication": {
"sign": "<i class='fas fa-mobile-alt'></i>", "sign": "<i class='fas fa-mobile-alt'></i>",
"zoom": 13 "zoom": 13

3
culture_religion.json

@ -31,6 +31,9 @@
{ {
"id": "memorial" "id": "memorial"
}, },
{
"id": "heritage"
},
{ {
"id": "religion" "id": "religion"
}, },

6
cycle_amenities.json

@ -13,7 +13,7 @@
"node[amenity~\"^(bicycle_rental)$\"];", "node[amenity~\"^(bicycle_rental)$\"];",
"way[amenity~\"^(bicycle_rental)$\"];", "way[amenity~\"^(bicycle_rental)$\"];",
"relation[amenity~\"^(bicycle_rental)$\"];", "relation[amenity~\"^(bicycle_rental)$\"];",
"node[amenity~\"^(charging_station)$\"][bicycle!=\"no\"];",
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];",
"node[shop~\"^(bicycle)$\"];", "node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];", "way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];", "relation[shop~\"^(bicycle)$\"];",
@ -24,7 +24,7 @@
"node[amenity~\"^(bicycle_.*|compressed_air)$\"];", "node[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"way[amenity~\"^(bicycle_.*|compressed_air)$\"];", "way[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"relation[amenity~\"^(bicycle_.*|compressed_air)$\"];", "relation[amenity~\"^(bicycle_.*|compressed_air)$\"];",
"node[amenity~\"^(charging_station)$\"][bicycle!=\"no\"];",
"node[amenity~\"^(charging_station)$\"][bicycle][bicycle!=\"no\"];",
"node[shop~\"^(bicycle)$\"];", "node[shop~\"^(bicycle)$\"];",
"way[shop~\"^(bicycle)$\"];", "way[shop~\"^(bicycle)$\"];",
"relation[shop~\"^(bicycle)$\"];", "relation[shop~\"^(bicycle)$\"];",
@ -56,7 +56,7 @@
"{% set constIndex = (key ~ \"=\" ~ value) %}" "{% set constIndex = (key ~ \"=\" ~ value) %}"
], ],
"title": [ "title": [
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}",
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}",
"", "",
"{% if tags.capacity %}({{ tags.capacity }}){% endif %}" "{% if tags.capacity %}({{ tags.capacity }}){% endif %}"
], ],

48
cycle_routes.json

@ -9,18 +9,24 @@
"pt-br": "Ciclorrotas" "pt-br": "Ciclorrotas"
}, },
"query": { "query": {
"6": "relation[type=route][route~\"(|.*;)bicycle(|;.*)\"][network~'^(icn)$']",
"9": "relation[type=route][route~\"(|.*;)bicycle(|;.*)\"][network~'^(icn|ncn)$']",
"12": "relation[type=route][route~\"(|.*;)bicycle(|;.*)\"][network~'^(icn|ncn|rcn)$']",
"15": "relation[type=route][route~\"(|.*;)bicycle(|;.*)\"]"
"6": "relation[type=route][route~\"^(|.*;)bicycle(|;.*)$\"][network~'^(|.*;)(icn)(|;.*)$']",
"9": "relation[type=route][route~\"^(|.*;)bicycle(|;.*)$\"][network~'^(|.*;)(icn|ncn)(|;.*)$']",
"12": "relation[type=route][route~\"^(|.*;)bicycle(|;.*)$\"][network~'^(|.*;)(icn|ncn|rcn)(|;.*)$']",
"15": "relation[type=route][route~\"^(|.*;)bicycle(|;.*)$\"]"
}, },
"members": true, "members": true,
"feature": { "feature": {
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"description": "{{ tagTrans('network', tags.network) }}",
"pre": [
"{% set network = tags.network %}",
"{% for n in tags.network|split(';') %}",
"{% if n|matches('cn$') %}{% set network = n %}{% endif %}",
"{% endfor %}"
],
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"description": "{{ tagTrans('network', network) }}",
"markerSymbol": "", "markerSymbol": "",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].color|default(const[''].color) })|raw }}",
"priority": "{{ const[tags.network].priority|default(4) }}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[network].color|default(const[''].color) })|raw }}",
"priority": "{{ const[network].priority|default(4) }}",
"styles": "", "styles": "",
"style:hover": { "style:hover": {
"width": "0" "width": "0"
@ -40,10 +46,14 @@
"{% set selected = false %}", "{% set selected = false %}",
"", "",
"{% for master in masters %}", "{% for master in masters %}",
" {% set _p = const[master.tags.network].priority|default(4) %}",
" {% set masterNetwork = '' %}",
" {% for n in master.tags.network|split(';') %}",
" {% if n|matches('cn$') %}{% set masterNetwork = n %}{% endif %}",
" {% endfor %}",
" {% set _p = const[masterNetwork].priority|default(4) %}",
" {% if _p < priority %}", " {% if _p < priority %}",
" {% set priority = _p %}", " {% set priority = _p %}",
" {% set network = master.tags.network %}",
" {% set network = masterNetwork %}",
" {% endif %}", " {% endif %}",
" {% if master.tags.ref %}", " {% if master.tags.ref %}",
" {% set refs = refs|merge([ master.tags.ref ]) %}", " {% set refs = refs|merge([ master.tags.ref ]) %}",
@ -61,11 +71,19 @@
"<h4>Routes</h4>", "<h4>Routes</h4>",
"<ul class='overpass-layer-list'>", "<ul class='overpass-layer-list'>",
"{% for master in masters %}", "{% for master in masters %}",
" <li data-object=\"{{ master.id }}\">",
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}</div></span>",
" <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>",
" <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>",
" </li>",
" {% set masterNetwork = '' %}",
" {% for n in master.tags.network|split(';') %}",
" {% if n|matches('cn$') %}{% set masterNetwork = n %}{% endif %}",
" {% endfor %}",
" <li data-object=\"{{ master.id }}\"><a>",
" <div class='marker'>",
" <div class='symbol'>{{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}</div>",
" </div>",
" <div class='content'>",
" <div class='description'>{{ tagTrans('network', masterNetwork) }}</div>",
" <div class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</div>",
" </div>",
" </a></li>",
"{% endfor %}", "{% endfor %}",
"</ul>" "</ul>"
], ],

14
detailsBody.html

@ -21,6 +21,20 @@
</li> </li>
{% endif %} {% endif %}
{% set address = tagsPrefix(tags, 'contact:') %}
{% if address %}
<li class='hasSymbol'>
<i class="fa fa-map-marker" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('address') }}:</span>
<span class='value'>
{{ attribute(tags, 'contact:street') }}
{{ attribute(tags, 'contact:housenumber') }},
{{ attribute(tags, 'contact:postcode') }}
{{ attribute(tags, 'contact:city') }}
</span>
</li>
{% endif %}
{% if attribute(tags, 'name:etymology') %} {% if attribute(tags, 'name:etymology') %}
<li class='hasSymbol'> <li class='hasSymbol'>
<i class="fa fa-book" aria-hidden="true"></i> <i class="fa fa-book" aria-hidden="true"></i>

1
gastro.json

@ -23,6 +23,7 @@
}, },
"feature": { "feature": {
"description": "{{ tagTrans('amenity', tags.amenity) }}", "description": "{{ tagTrans('amenity', tags.amenity) }}",
"details": "{{ tagTransList('cuisine', tags.cuisine) }}",
"body": [ "body": [
"<ul>", "<ul>",
" <li class='hasSymbol'>", " <li class='hasSymbol'>",

28
heritage.json

@ -0,0 +1,28 @@
{
"type": "overpass",
"query": {
"8": "nwr[heritage~\"^(|.*;)1(|;.*)$\"];",
"11": "nwr[heritage~\"^(|.*;)(1|2)(|;.*)$\"];",
"13": "nwr[heritage];"
},
"feature": {
"description": [
"{% set found = false %}",
"{% for k in ['amenity', 'shop', 'telecom', 'waterway', 'craft', 'highway', 'railway', 'aerialway', 'emergency', 'geological', 'man_made', 'natural', 'office', 'power', 'aeroway', 'tourism', 'leisure', 'military', 'landuse', 'barrier', 'route'] if not found %}",
" {% if attribute(tags, k) and attribute(tags, k) != 'yes' %}",
" {{ tagTransList(k, attribute(tags, k)) }}",
" {% set found = true %}",
" {% endif %}",
"{% endfor %}",
"{% if found %}{# nothing #}",
"{% elseif tags.building and tags.building != 'yes' %}",
"{{ tagTransList('building', tags.building) }}",
"{% elseif tags.historic and tags.historic not in ['heritage', 'yes', 'building'] %}",
"{{ tagTransList('historic', tags.historic) }}",
"{% elseif tags.building == 'yes' or tags.historic == 'building' %}",
"{{ keyTrans('building') }}",
"{% endif %}"
],
"priority": "{{ min(tags.heritage|split(\";\")) }}"
}
}

48
hiking_routes.json

@ -9,17 +9,23 @@
"pt-br": "Rotas de caminhada" "pt-br": "Rotas de caminhada"
}, },
"query": { "query": {
"10": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn)$\"]",
"11": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn|nwn)$\"]",
"12": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"][network~\"^(iwn|nwn|rwn)$\"]",
"14": "relation[type=route][route~\"(|.*;)hiking(|;.*)\"]"
"10": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn)(|;.*)$\"]",
"11": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn|nwn)(|;.*)$\"]",
"12": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"][network~\"^(|.*;)(iwn|nwn|rwn)(|;.*)$\"]",
"14": "relation[type=route][route~\"^(|.*;)hiking(|;.*)$\"]"
}, },
"members": true, "members": true,
"feature": { "feature": {
"priority": "{{ const[tags.network].priority|default(4) }}",
"description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network|default('')].color|default(const[''].color) })|raw }}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"pre": [
"{% set network = tags.network %}",
"{% for n in tags.network|split(';') %}",
"{% if n|matches('wn$') %}{% set network = n %}{% endif %}",
"{% endfor %}"
],
"priority": "{{ const[network].priority|default(4) }}",
"description": "{% if network %}{{ tagTrans('network', network) }}{% endif %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[network|default('')].color|default(const[''].color) })|raw }}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"styles": "", "styles": "",
"markerSymbol": "" "markerSymbol": ""
}, },
@ -30,10 +36,14 @@
"{% set refs = [] %}", "{% set refs = [] %}",
"", "",
"{% for master in masters %}", "{% for master in masters %}",
" {% set _p = const[master.tags.network].priority|default(4) %}",
" {% set masterNetwork = '' %}",
" {% for n in master.tags.network|split(';') %}",
" {% if n|matches('wn$') %}{% set masterNetwork = n %}{% endif %}",
" {% endfor %}",
" {% set _p = const[masterNetwork].priority|default(4) %}",
" {% if _p < priority %}", " {% if _p < priority %}",
" {% set priority = _p %}", " {% set priority = _p %}",
" {% set network = master.tags.network %}",
" {% set network = masterNetwork %}",
" {% endif %}", " {% endif %}",
" {% if master.tags.ref %}", " {% if master.tags.ref %}",
" {% set refs = refs|merge([ master.tags.ref ]) %}", " {% set refs = refs|merge([ master.tags.ref ]) %}",
@ -44,11 +54,19 @@
"<h4>Routes</h4>", "<h4>Routes</h4>",
"<ul class='overpass-layer-list'>", "<ul class='overpass-layer-list'>",
"{% for master in masters %}", "{% for master in masters %}",
" <li data-object=\"{{ master.id }}\">",
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}</div></span>",
" <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>",
" <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>",
" </li>",
" {% set masterNetwork = '' %}",
" {% for n in master.tags.network|split(';') %}",
" {% if n|matches('wn$') %}{% set masterNetwork = n %}{% endif %}",
" {% endfor %}",
" <li data-object=\"{{ master.id }}\"><a>",
" <div class='marker'>",
" <div class='symbol'>{{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}</div>",
" </div>",
" <div class='content'>",
" <div class='description'>{{ tagTrans('network', masterNetwork) }}</div>",
" <div class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% endif %}</div>",
" </div>",
" </a></li>",
"{% endfor %}", "{% endfor %}",
"</ul>" "</ul>"
], ],

1
lang/de.json

@ -32,6 +32,7 @@
"category:gastro": "Gastronomie", "category:gastro": "Gastronomie",
"category:gastro-smoking": "Rauchfreie Gastronomie", "category:gastro-smoking": "Rauchfreie Gastronomie",
"category:health": "Gesundheitsdienste", "category:health": "Gesundheitsdienste",
"category:heritage": "Denkmalschutz",
"category:hiking_routes": "Wanderrouten", "category:hiking_routes": "Wanderrouten",
"category:historic": "Geschichte", "category:historic": "Geschichte",
"category:index": "", "category:index": "",

1
lang/en.json

@ -34,6 +34,7 @@
"category:gastro": "Gastronomy", "category:gastro": "Gastronomy",
"category:gastro-smoking": "Smokefree Gastronomy", "category:gastro-smoking": "Smokefree Gastronomy",
"category:health": "Health", "category:health": "Health",
"category:heritage": "Heritage Protection",
"category:hiking_routes": "Hiking routes", "category:hiking_routes": "Hiking routes",
"category:historic": "Historic", "category:historic": "Historic",
"category:index": "Index of Categories", "category:index": "Index of Categories",

2
mtb-routes.json

@ -13,7 +13,7 @@
"feature": { "feature": {
"description": "{{ tagTrans('route', 'mtb') }}", "description": "{{ tagTrans('route', 'mtb') }}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"styles": "", "styles": "",
"markerSymbol": "" "markerSymbol": ""
}, },

7
natural.json

@ -52,10 +52,7 @@
"{% set value = tags.natural %}", "{% set value = tags.natural %}",
"{% endif %}" "{% endif %}"
], ],
"title": [
"{{ localizedTag(tags, 'name') | default(trans('unnamed')) }}",
"{% if tags.natural == 'peak' and tags.ele %}({{ tags.ele }}m){% endif %}"
],
"details": "{% if tags.natural == 'peak' and tags.ele %}{{ tags.ele }}m{% endif %}",
"description": "{{ tagTrans(key, value) }}", "description": "{{ tagTrans(key, value) }}",
"style": { "style": {
"color": "{{ const[value].color|default('#f2756a') }}" "color": "{{ const[value].color|default('#f2756a') }}"
@ -225,7 +222,7 @@
}, },
"volcano": { "volcano": {
"zoom": 9, "zoom": 9,
"sign": "",
"sign": "<i class='fas fa-mountain'></i>",
"color": "#cf3a00", "color": "#cf3a00",
"group": "landform" "group": "landform"
}, },

14
popupBody.html

@ -21,6 +21,20 @@
</li> </li>
{% endif %} {% endif %}
{% set address = tagsPrefix(tags, 'contact:') %}
{% if address %}
<li class='hasSymbol'>
<i class="fa fa-map-marker" aria-hidden="true"></i>
<span class='key'>{{ keyTrans('address') }}:</span>
<span class='value'>
{{ attribute(tags, 'contact:street') }}
{{ attribute(tags, 'contact:housenumber') }},
{{ attribute(tags, 'contact:postcode') }}
{{ attribute(tags, 'contact:city') }}
</span>
</li>
{% endif %}
{% if attribute(tags, 'name:etymology') %} {% if attribute(tags, 'name:etymology') %}
<li class='hasSymbol'> <li class='hasSymbol'>
<i class="fa fa-book" aria-hidden="true"></i> <i class="fa fa-book" aria-hidden="true"></i>

2
power_routes.json

@ -13,7 +13,7 @@
"feature": { "feature": {
"pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}", "pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}",
"description": "{% if tags.operator %}{{ tags.operator }}{% endif %}", "description": "{% if tags.operator %}{{ tags.operator }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
"markerSymbol": "", "markerSymbol": "",
"styles": "" "styles": ""

26
pt.json

@ -54,7 +54,7 @@
"title": [ "title": [
"{% if tags.ref %}{{ tags.ref }} - {% endif %}", "{% if tags.ref %}{{ tags.ref }} - {% endif %}",
"", "",
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}"
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}"
], ],
"description": "{{ tagTrans('route', tags.route) }}", "description": "{{ tagTrans('route', tags.route) }}",
"body": [ "body": [
@ -128,9 +128,13 @@
"{% for master in masters %}", "{% for master in masters %}",
" {% if master.tags.public_transport != 'stop_area' %}", " {% if master.tags.public_transport != 'stop_area' %}",
" <li data-object=\"{{ master.id }}\">", " <li data-object=\"{{ master.id }}\">",
" <span class='markerParent'><div class='marker'>{{ markerCircle({fillColor:const[master.tags.route].color})|raw }}</div><div class='icon'>{{ const[master.tags.route].sign|raw }}</div></span>",
" <span class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</span>",
" <span class='description'>{{ tagTrans('route', master.tags.route) }}</span>",
" <a href='#pt/{{ master.id }}'>",
" <div class='marker'><div class='symbol'>{{ markerCircle({fillColor:const[master.tags.route].color})|raw }}</div><div class='sign'>{{ const[master.tags.route].sign|raw }}</div></div>",
" <div class='content'>",
" <div class='description'>{{ tagTrans('route', master.tags.route) }}</div>",
" <div class='title'>{% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}</div>",
" </div>",
" </a>",
" </li>", " </li>",
" {% endif %}", " {% endif %}",
"{% endfor %}", "{% endfor %}",
@ -178,8 +182,16 @@
"listStopsMarkerSign": null, "listStopsMarkerSign": null,
"listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}", "listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}",
"listStopsExclude": "{{ not isStop or stopCount == 0 }}", "listStopsExclude": "{{ not isStop or stopCount == 0 }}",
"listStopsTitle": "{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}<li>{{ trans('loading') }}</li>{% endif %}",
"listStopsDescription": "{{ refs|join(' · ') }}",
"listStopsTitle": [
"{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}<li>{{ trans('loading') }}</li>{% endif %}<br/>",
"<i>{{ refs|join(' · ') }}</i>"
],
"description": [
"{% set stopTypes = [] %}",
"{% if tags.railway in ['tram_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('railway', tags.railway) ]) %}{% endif %}",
"{% if tags.highway in ['bus_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('highway', tags.highway) ]) %}{% endif %}",
"{% if stopTypes|length %}{{ enumerate(stopTypes) }}{% elseif isStop %}{{ tagTrans('public_transport', 'stop_position') }}{% else %}{{ keyTrans('route') }}{% endif %}"
],
"listRoutesExclude": "true", "listRoutesExclude": "true",
"style:stop": { "style:stop": {
"width": "4", "width": "4",
@ -195,7 +207,7 @@
"dashArray": "{% if not dirForward or not dirBackward %}27,8{% endif %}", "dashArray": "{% if not dirForward or not dirBackward %}27,8{% endif %}",
"dashOffset": "{% if dirBackward %}28{% else %}0{% endif %}", "dashOffset": "{% if dirBackward %}28{% else %}0{% endif %}",
"noClip": "{% if not dirForward or not dirBackward %}true{% else %}false{% endif %}", "noClip": "{% if not dirForward or not dirBackward %}true{% else %}false{% endif %}",
"text": "{{ refs|join(' · ') }} ",
"text1": "{{ refs|join(' · ') }} ",
"textRepeat": "1", "textRepeat": "1",
"textOffset": "12", "textOffset": "12",
"pattern": "{% if dirForward and dirBackward %}{% else %}arrowHead{% endif %}", "pattern": "{% if dirForward and dirBackward %}{% else %}arrowHead{% endif %}",

1
public.json

@ -53,7 +53,6 @@
"{% set value = tags.office %}", "{% set value = tags.office %}",
"{% endif %}" "{% endif %}"
], ],
"title": "{{ tags.name|default(tags.operator)|default(tagTrans('amenity', value)) }}",
"description": [ "description": [
"{% if key == 'office' %}", "{% if key == 'office' %}",
" {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})", " {{ keyTrans('office') }} ({{ tagTrans('office', tags.office) }})",

11
railway-electrification.json

@ -44,14 +44,13 @@
" {% endif %}", " {% endif %}",
"{% endif %}" "{% endif %}"
], ],
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"description": [
"{{ tagTrans('railway', tags.railway) }}",
"",
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator')) }}",
"description": "{{ tagTrans('railway', tags.railway) }}",
"details": [
"{% if tags.electrified == 'no' %}", "{% if tags.electrified == 'no' %}",
" - {{ tagTrans('electrified', 'no') }}",
"{{ tagTrans('electrified', 'no') }}",
"{% elseif tags.electrified %}", "{% elseif tags.electrified %}",
" - {{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz",
"{{ tags.voltage|default(trans('unknown')) }}V, {{ tags.frequency|default(trans('unknown')) }}Hz",
"{% endif %}" "{% endif %}"
], ],
"body": [ "body": [

5
railway-gauge.json

@ -12,8 +12,9 @@
"{% set gauges = tags.gauge|split(';')|sort|reverse %}", "{% set gauges = tags.gauge|split(';')|sort|reverse %}",
"{% set width = max(3, 3 / map.metersPerPixel) %}" "{% set width = max(3, 3 / map.metersPerPixel) %}"
], ],
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"description": "{{ tags.gauge|default(trans('unknown'))|enumerate }}",
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator')) }}",
"description": "{{ tagTrans('railway', tags.railway) }}",
"details": "{{ tags.gauge|default(trans('unknown'))|enumerate }}",
"body": [ "body": [
"{{ tagTrans('railway', tags.railway) }}<br/>", "{{ tagTrans('railway', tags.railway) }}<br/>",
"{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}", "{% if tags.operator %}{{ keyTrans('operator') }}: {{ localizedTag(tags, 'operator') }}<br>{% endif %}",

2
railway-infrastructure.json

@ -14,7 +14,7 @@
"17": "(node[railway];way[railway];)" "17": "(node[railway];way[railway];)"
}, },
"feature": { "feature": {
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator'))|default(trans('unnamed')) }}",
"title": "{% if tags.ref %}{{ localizedTag(tags, 'ref') }} - {% endif %}{{ localizedTag(tags, 'name')|default(localizedTag(tags, 'operator')) }}",
"description": [ "description": [
"{{ tagTrans('railway', tags.railway) -}}", "{{ tagTrans('railway', tags.railway) -}}",
"{%- if tags.usage %}", "{%- if tags.usage %}",

2
railway-routes.json

@ -14,7 +14,7 @@
"pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}", "pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
"description": "{{ tags.operator }}", "description": "{{ tags.operator }}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
"title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% endif %}",
"styles": "", "styles": "",
"markerSymbol": "" "markerSymbol": ""
}, },

8
religion.json

@ -63,15 +63,15 @@
" {% if isTranslated('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) %}", " {% if isTranslated('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) %}",
" {{ trans('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) }}", " {{ trans('tag:building=' ~ tags.building ~ ' religion=' ~ tags.religion) }}",
" {% elseif tags.building != 'yes' %}", " {% elseif tags.building != 'yes' %}",
" {{ trans('tag:building=' ~ tags.building) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}",
" {{ trans('tag:building=' ~ tags.building) }}",
" {% else %}", " {% else %}",
" {{ tagTrans(key, value) }}: {{ tagTransList('religion', tags.religion) }}",
" {{ tagTrans(key, value) }}",
" {% endif %}", " {% endif %}",
"{% else %}", "{% else %}",
" {{ tagTrans(key, value) }}{% if tags.religion %}: {{ tagTransList('religion', tags.religion) }}{% endif %}",
" {{ tagTrans(key, value) }}",
"{% endif %}" "{% endif %}"
], ],
"popupDescription": "{{ tagTrans(key, value) }}",
"listDetails": "{{ tagTransList('religion', tags.religion) }}{% if tags.denomination %} - {{ tagTransList('denomination', tags.denomination) }}{% endif %}",
"body": [ "body": [
"{% if tags.building %}", "{% if tags.building %}",
" {{ keyTrans('building') }}: {{ tagTrans('building', tags.building) }}<br/>", " {{ keyTrans('building') }}: {{ tagTrans('building', tags.building) }}<br/>",

14
sport.json

@ -20,8 +20,18 @@
"14": "(node[sport];way[sport];relation[sport];)" "14": "(node[sport];way[sport];relation[sport];)"
}, },
"feature": { "feature": {
"title": "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) |default(tagTransList('sport', tags.sport)) }}",
"description": "{{ tagTransList('sport', tags.sport) }}",
"description": [
"{% if tags.leisure %}{{ tagTrans('leisure', tags.leisure) }}",
"{% elseif tags.amenity %}{{ tagTrans('amenity', tags.amenity) }}",
"{% elseif tags.shop %}{{ tags.shop == 'yes' ? keyTrans('shop') : tagTrans('shop', tags.shop) }}",
"{% elseif tags.landuse %}{{ tagTrans('landuse', tags.landuse) }}",
"{% elseif tags.building %}{{ tags.building == 'yes' ? keyTrans('building') : tagTrans('building', tags.building) }}",
"{% elseif tags.highway %}{{ tagTrans('highway', tags.highway) }}",
"{% else %}{{ keyTrans('sport') }}",
"{% endif %}"
],
"listDetails": "{{ tagTransList('sport', tags.sport) }}",
"body": "{{ keyTrans('sport') }}: {{ tagTransList('sport', tags.sport) }}",
"markerSign": [ "markerSign": [
"{% set firstSport = tags.sport|split(';')[0] %}", "{% set firstSport = tags.sport|split(';')[0] %}",
"{{ const[firstSport] }}" "{{ const[firstSport] }}"

6
swimming_bathing.json

@ -11,10 +11,10 @@
"13": [ "13": [
"(", "(",
"nwr[leisure=swimming_area];", "nwr[leisure=swimming_area];",
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];",
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(;.*|)$\"];",
"nwr[natural~\"^(beach)\"];", "nwr[natural~\"^(beach)\"];",
"nwr[leisure~\"^(water_park|beach_resort)$\"];", "nwr[leisure~\"^(water_park|beach_resort)$\"];",
"nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(.*|)$\"];",
"nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];",
"nwr[amenity=public_bath];", "nwr[amenity=public_bath];",
"nwr[tourism=spa_resort];", "nwr[tourism=spa_resort];",
")" ")"
@ -22,7 +22,7 @@
"16": [ "16": [
"(", "(",
"nwr[leisure=swimming_area];", "nwr[leisure=swimming_area];",
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(.*|)$\"];",
"nwr[natural~\"^(water)\"][sport~\"^(|.*;)swimming(;.*|)$\"];",
"nwr[natural~\"^(beach)\"];", "nwr[natural~\"^(beach)\"];",
"nwr[leisure~\"^(water_park|beach_resort)$\"];", "nwr[leisure~\"^(water_park|beach_resort)$\"];",
"nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];", "nwr[leisure=sports_centre][sport~\"^(|.*;)swimming(;.*|)$\"];",

Loading…
Cancel
Save