Browse Source

New category: power routes

pattern
parent
commit
f968b451ad
  1. 3
      index.json
  2. 1
      lang/ast.json
  3. 1
      lang/ca.json
  4. 1
      lang/cs.json
  5. 1
      lang/de.json
  6. 1
      lang/el.json
  7. 1
      lang/en.json
  8. 1
      lang/es.json
  9. 1
      lang/et.json
  10. 1
      lang/fr.json
  11. 1
      lang/hu.json
  12. 1
      lang/it.json
  13. 1
      lang/ja.json
  14. 1
      lang/nl.json
  15. 1
      lang/pl.json
  16. 1
      lang/pt-br.json
  17. 1
      lang/pt.json
  18. 1
      lang/ro.json
  19. 1
      lang/ru.json
  20. 1
      lang/template.json
  21. 1
      lang/uk.json
  22. 63
      power_routes.json

3
index.json

@ -260,6 +260,9 @@
{ {
"id": "electric_power" "id": "electric_power"
}, },
{
"id": "power_routes"
},
{ {
"id": "coal" "id": "coal"
}, },

1
lang/ast.json

@ -44,6 +44,7 @@
"category:places_geo": "Llugares", "category:places_geo": "Llugares",
"category:playgrounds": "Xuegos infantiles", "category:playgrounds": "Xuegos infantiles",
"category:post": "Corréu", "category:post": "Corréu",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Paraes y estaciones", "category:pt:stops": "Paraes y estaciones",

1
lang/ca.json

@ -44,6 +44,7 @@
"category:places_geo": "", "category:places_geo": "",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "", "category:pt:stops": "",

1
lang/cs.json

@ -44,6 +44,7 @@
"category:places_geo": "Sídla", "category:places_geo": "Sídla",
"category:playgrounds": "Hřiště", "category:playgrounds": "Hřiště",
"category:post": "Poštovní služby", "category:post": "Poštovní služby",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Zastávky & Stanice", "category:pt:stops": "Zastávky & Stanice",

1
lang/de.json

@ -44,6 +44,7 @@
"category:places_geo": "Orte", "category:places_geo": "Orte",
"category:playgrounds": "Spielplätze", "category:playgrounds": "Spielplätze",
"category:post": "Post", "category:post": "Post",
"category:power_routes": "",
"category:pt": "ÖV Karte", "category:pt": "ÖV Karte",
"category:pt:routes": "Routen", "category:pt:routes": "Routen",
"category:pt:stops": "Haltestellen", "category:pt:stops": "Haltestellen",

1
lang/el.json

@ -44,6 +44,7 @@
"category:places_geo": "Μέρη", "category:places_geo": "Μέρη",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Στάσεις & Σταθμοί", "category:pt:stops": "Στάσεις & Σταθμοί",

1
lang/en.json

@ -44,6 +44,7 @@
"category:places_geo": "Places", "category:places_geo": "Places",
"category:playgrounds": "Playground", "category:playgrounds": "Playground",
"category:post": "Post", "category:post": "Post",
"category:power_routes": "Power routes",
"category:pt": "Public transport map", "category:pt": "Public transport map",
"category:pt:routes": "Routes", "category:pt:routes": "Routes",
"category:pt:stops": "Stops & Stations", "category:pt:stops": "Stops & Stations",

1
lang/es.json

@ -44,6 +44,7 @@
"category:places_geo": "", "category:places_geo": "",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Paradas y estaciones", "category:pt:stops": "Paradas y estaciones",

1
lang/et.json

@ -44,6 +44,7 @@
"category:places_geo": "Kohad", "category:places_geo": "Kohad",
"category:playgrounds": "Mänguväljak", "category:playgrounds": "Mänguväljak",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "", "category:pt:stops": "",

1
lang/fr.json

@ -44,6 +44,7 @@
"category:places_geo": "Lieux", "category:places_geo": "Lieux",
"category:playgrounds": "Jeux pour enfants", "category:playgrounds": "Jeux pour enfants",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "Lignes", "category:pt:routes": "Lignes",
"category:pt:stops": "Arrêts/Stops, Stations", "category:pt:stops": "Arrêts/Stops, Stations",

1
lang/hu.json

@ -44,6 +44,7 @@
"category:places_geo": "Helyek", "category:places_geo": "Helyek",
"category:playgrounds": "Játszóterek", "category:playgrounds": "Játszóterek",
"category:post": "Posta", "category:post": "Posta",
"category:power_routes": "",
"category:pt": "Tömegközlekedési térkép", "category:pt": "Tömegközlekedési térkép",
"category:pt:routes": "Útvonalak", "category:pt:routes": "Útvonalak",
"category:pt:stops": "Megállók és állomások", "category:pt:stops": "Megállók és állomások",

1
lang/it.json

@ -44,6 +44,7 @@
"category:places_geo": "Luoghi", "category:places_geo": "Luoghi",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Stazioni e fermate", "category:pt:stops": "Stazioni e fermate",

1
lang/ja.json

@ -44,6 +44,7 @@
"category:places_geo": "場所", "category:places_geo": "場所",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "郵便", "category:post": "郵便",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "停留所と駅", "category:pt:stops": "停留所と駅",

1
lang/nl.json

@ -44,6 +44,7 @@
"category:places_geo": "Plaatsen", "category:places_geo": "Plaatsen",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "Post", "category:post": "Post",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Haltes en Stations", "category:pt:stops": "Haltes en Stations",

1
lang/pl.json

@ -44,6 +44,7 @@
"category:places_geo": "Miejsca", "category:places_geo": "Miejsca",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Przystanki i Stacje", "category:pt:stops": "Przystanki i Stacje",

1
lang/pt-br.json

@ -44,6 +44,7 @@
"category:places_geo": "Lugares", "category:places_geo": "Lugares",
"category:playgrounds": "Parquinhos", "category:playgrounds": "Parquinhos",
"category:post": "Correios", "category:post": "Correios",
"category:power_routes": "",
"category:pt": "Mapa de transporte público", "category:pt": "Mapa de transporte público",
"category:pt:routes": "Rotas", "category:pt:routes": "Rotas",
"category:pt:stops": "Paradas e estações", "category:pt:stops": "Paradas e estações",

1
lang/pt.json

@ -44,6 +44,7 @@
"category:places_geo": "Lugares", "category:places_geo": "Lugares",
"category:playgrounds": "Parques infantis", "category:playgrounds": "Parques infantis",
"category:post": "Correios", "category:post": "Correios",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "Rotas", "category:pt:routes": "Rotas",
"category:pt:stops": "", "category:pt:stops": "",

1
lang/ro.json

@ -44,6 +44,7 @@
"category:places_geo": "Locuri", "category:places_geo": "Locuri",
"category:playgrounds": "Loc de joaca", "category:playgrounds": "Loc de joaca",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "", "category:pt:stops": "",

1
lang/ru.json

@ -44,6 +44,7 @@
"category:places_geo": "Места", "category:places_geo": "Места",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Остановки и станции", "category:pt:stops": "Остановки и станции",

1
lang/template.json

@ -44,6 +44,7 @@
"category:places_geo": "", "category:places_geo": "",
"category:playgrounds": "", "category:playgrounds": "",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "", "category:pt:stops": "",

1
lang/uk.json

@ -44,6 +44,7 @@
"category:places_geo": "Місцевість", "category:places_geo": "Місцевість",
"category:playgrounds": "Дитячий майданчик", "category:playgrounds": "Дитячий майданчик",
"category:post": "", "category:post": "",
"category:power_routes": "",
"category:pt": "", "category:pt": "",
"category:pt:routes": "", "category:pt:routes": "",
"category:pt:stops": "Зупинки та станції", "category:pt:stops": "Зупинки та станції",

63
power_routes.json

@ -0,0 +1,63 @@
{
"type": "overpass",
"name": {
"en": "Power routes"
},
"query": {
"10": "relation[type=route][route=power]"
},
"members": true,
"feature": {
"pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}",
"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 %}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}",
"markerSymbol": "",
"styles": ""
},
"memberFeature": {
"pre": [
"{% set refs = [] %}",
"{% set color = '#d41d8c' %}",
"{% if tags.ref %}",
" {% for ref in tags.ref|split(';') %}",
" {% set refs = refs|merge([ ref|trim ]) %}",
" {% endfor %}",
"{% endif %}",
"",
"{% for master in masters %}",
" {% if master.tags.operator %}",
" {% set color = '#' ~ master.tags.operator|md5|slice(0, 6) %}",
" {% endif %}",
" {% if master.tags.ref %}",
" {% set refs = refs|merge([ master.tags.ref ]) %}",
" {% endif %}",
"{% endfor %}",
"",
"{% set refs = refs|unique|natsort({ insensitive: true }) %}"
],
"body": [
"<h4>Routes</h4>",
"<ul>",
"{% for master in masters %}",
" {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}",
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>",
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: _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'>{{ master.tags.operator }}</span>",
" </li>",
"{% endfor %}",
"</ul>"
],
"listExclude": "1",
"style": {
"color": "{{ color }}",
"width": 4,
"opacity": 1,
"text": "{{ refs|join(' · ') }} ",
"textRepeat": "1",
"textOffset": "12",
"textFontWeight": "bold"
}
}
}
Loading…
Cancel
Save