Igor Eliezer
6 years ago
committed by
GitHub
75 changed files with 1208 additions and 599 deletions
-
1administrative.json
-
3agriculture.json
-
1alternative_routes.json
-
1buildings.json
-
5car_amenities.json
-
1car_furniture.json
-
1car_maxspeed.json
-
59car_routes.json
-
1communication.json
-
1construction.json
-
1craft.json
-
1culture.json
-
1culture_religion.json
-
90cycle_routes.json
-
1education.json
-
3emergency.json
-
1financial.json
-
1gastro-smoking.json
-
13gastro.json
-
3health.json
-
90hiking_routes.json
-
3historic.json
-
44index.json
-
1internet.json
-
33lang/ast.json
-
101lang/ca.json
-
33lang/cs.json
-
13lang/de.json
-
63lang/el.json
-
13lang/en.json
-
103lang/es.json
-
69lang/et.json
-
13lang/fr.json
-
65lang/hu.json
-
41lang/it.json
-
39lang/ja.json
-
35lang/nl.json
-
85lang/pl.json
-
13lang/pt-br.json
-
71lang/pt.json
-
57lang/ro.json
-
41lang/ru.json
-
21lang/template.json
-
55lang/uk.json
-
1leisure.json
-
1military.json
-
51mtb-routes.json
-
1natural.json
-
1other.json
-
13outdoor.json
-
1phone.json
-
1places.json
-
1places_geo.json
-
1playgrounds.json
-
21popupBody.html
-
1post.json
-
1power.json
-
193pt.json
-
81pt_routes.json
-
48pt_stops.json
-
1public.json
-
7railway-electrification.json
-
20railway-infrastructure.json
-
58railway-routes.json
-
1religion.json
-
1residential.json
-
1resources.json
-
1shop.json
-
1sport.json
-
1tourism_attractions.json
-
3tourism_services.json
-
1waste.json
-
1water.json
-
1wikipedia.json
-
1works.json
@ -0,0 +1,59 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Car routes" |
|||
}, |
|||
"query": { |
|||
"10": "relation[type=route][route=road]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"pre": "{% set color = '#' ~ tags.network|default('')|md5|slice(0, 6) %}", |
|||
"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 %}", |
|||
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", |
|||
"markerSymbol": "", |
|||
"styles": "" |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set refs = [] %}", |
|||
"{% set color = '#d41d8c' %}", |
|||
"{% if tags.ref %}", |
|||
" {% set refs = refs|merge([ tags.ref ]) %}", |
|||
"{% endif %}", |
|||
"", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.network %}", |
|||
" {% set color = '#' ~ master.tags.network|md5|slice(0, 6) %}", |
|||
" {% endif %}", |
|||
" {% if master.tags.ref %}", |
|||
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|||
" {% endif %}", |
|||
"{% endfor %}" |
|||
], |
|||
"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'>{{ tagTrans('network', master.tags.network) }}</span>", |
|||
" </li>", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"listExclude": "1", |
|||
"style": { |
|||
"color": "{{ color }}", |
|||
"width": 4, |
|||
"opacity": 1, |
|||
"text": "{{ refs|join(' ') }} ", |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold" |
|||
} |
|||
} |
|||
} |
@ -1,60 +1,63 @@ |
|||
{ |
|||
"category:administrative": null, |
|||
"category:agriculture": null, |
|||
"category:alternative_amenities": null, |
|||
"category:alternative_routes": null, |
|||
"category:buildings": null, |
|||
"category:car_amenities": null, |
|||
"category:car_furniture": null, |
|||
"category:car_maxspeed": null, |
|||
"category:children": null, |
|||
"category:administrative": "", |
|||
"category:agriculture": "", |
|||
"category:alternative_amenities": "", |
|||
"category:alternative_routes": "", |
|||
"category:buildings": "", |
|||
"category:car_amenities": "", |
|||
"category:car_furniture": "", |
|||
"category:car_maxspeed": "", |
|||
"category:children": "", |
|||
"category:communication": "Comunicacions", |
|||
"category:construction": null, |
|||
"category:construction": "", |
|||
"category:craft": "", |
|||
"category:culture": "Cultura", |
|||
"category:culture_religion": "Cultura i religió", |
|||
"category:cycle_amenities": null, |
|||
"category:cycle_routes": null, |
|||
"category:education": null, |
|||
"category:cycle_amenities": "", |
|||
"category:cycle_routes": "", |
|||
"category:education": "", |
|||
"category:emergency": "Serveis d'emergència", |
|||
"category:financial": null, |
|||
"category:financial": "", |
|||
"category:gastro-smoking": "", |
|||
"category:gastro": null, |
|||
"category:health": null, |
|||
"category:hiking_routes": null, |
|||
"category:historic": null, |
|||
"category:index": null, |
|||
"category:gastro": "", |
|||
"category:health": "", |
|||
"category:hiking_routes": "", |
|||
"category:historic": "", |
|||
"category:index": "", |
|||
"category:internet": "Accés a Internet", |
|||
"category:leisure": null, |
|||
"category:military": null, |
|||
"category:natural": null, |
|||
"category:other": null, |
|||
"category:phone": null, |
|||
"category:places": null, |
|||
"category:places_geo": null, |
|||
"category:playgrounds": null, |
|||
"category:post": null, |
|||
"category:power": null, |
|||
"category:pt_amenities": null, |
|||
"category:pt_routes": null, |
|||
"category:pt_stops": null, |
|||
"category:public": null, |
|||
"category:railway-electrification": null, |
|||
"category:railway-infrastructure": null, |
|||
"category:religion": null, |
|||
"category:residential": null, |
|||
"category:resources": null, |
|||
"category:shop": null, |
|||
"category:sport": null, |
|||
"category:tourism_attractions": null, |
|||
"category:tourism_services": null, |
|||
"category:transport_alternative": null, |
|||
"category:walk_amenities": null, |
|||
"category:waste": null, |
|||
"category:water": null, |
|||
"category:wikipedia": null, |
|||
"category:works": null, |
|||
"category:cycle_infrastructure": null, |
|||
"category:leisure": "", |
|||
"category:military": "", |
|||
"category:mtb-routes": "", |
|||
"category:natural": "", |
|||
"category:other": "", |
|||
"category:outdoor": "", |
|||
"category:phone": "", |
|||
"category:places": "", |
|||
"category:places_geo": "", |
|||
"category:playgrounds": "", |
|||
"category:post": "", |
|||
"category:power": "", |
|||
"category:pt": "", |
|||
"category:pt:stops": "", |
|||
"category:pt:routes": "", |
|||
"category:pt_amenities": "", |
|||
"category:public": "", |
|||
"category:railway-electrification": "", |
|||
"category:railway-infrastructure": "", |
|||
"category:railway-routes": "", |
|||
"category:religion": "", |
|||
"category:residential": "", |
|||
"category:resources": "", |
|||
"category:shop": "", |
|||
"category:sport": "", |
|||
"category:tourism_attractions": "", |
|||
"category:tourism_services": "", |
|||
"category:transport_alternative": "", |
|||
"category:walk_amenities": "", |
|||
"category:waste": "", |
|||
"category:water": "", |
|||
"category:wikipedia": "", |
|||
"category:works": "", |
|||
"category:leisure_sport_shopping": "Oci, esport i compres", |
|||
"category:services": "Serveis" |
|||
} |
@ -1,60 +1,63 @@ |
|||
{ |
|||
"category:administrative": null, |
|||
"category:agriculture": null, |
|||
"category:alternative_amenities": null, |
|||
"category:alternative_routes": null, |
|||
"category:buildings": null, |
|||
"category:car_amenities": null, |
|||
"category:car_furniture": null, |
|||
"category:car_maxspeed": null, |
|||
"category:children": null, |
|||
"category:communication": null, |
|||
"category:construction": null, |
|||
"category:administrative": "", |
|||
"category:agriculture": "", |
|||
"category:alternative_amenities": "", |
|||
"category:alternative_routes": "", |
|||
"category:buildings": "", |
|||
"category:car_amenities": "", |
|||
"category:car_furniture": "", |
|||
"category:car_maxspeed": "", |
|||
"category:children": "", |
|||
"category:communication": "", |
|||
"category:construction": "", |
|||
"category:craft": "", |
|||
"category:culture": "Cultura", |
|||
"category:culture_religion": "Cultura y religión", |
|||
"category:cycle_amenities": null, |
|||
"category:cycle_routes": null, |
|||
"category:education": null, |
|||
"category:cycle_amenities": "", |
|||
"category:cycle_routes": "", |
|||
"category:education": "", |
|||
"category:emergency": "Servicios de emergencia", |
|||
"category:financial": null, |
|||
"category:financial": "", |
|||
"category:gastro-smoking": "", |
|||
"category:gastro": null, |
|||
"category:health": null, |
|||
"category:hiking_routes": null, |
|||
"category:historic": null, |
|||
"category:index": null, |
|||
"category:gastro": "", |
|||
"category:health": "", |
|||
"category:hiking_routes": "", |
|||
"category:historic": "", |
|||
"category:index": "", |
|||
"category:internet": "Acceso a Internet", |
|||
"category:leisure": null, |
|||
"category:military": null, |
|||
"category:natural": null, |
|||
"category:other": null, |
|||
"category:phone": null, |
|||
"category:places": null, |
|||
"category:places_geo": null, |
|||
"category:playgrounds": null, |
|||
"category:post": null, |
|||
"category:power": null, |
|||
"category:pt_amenities": null, |
|||
"category:pt_routes": null, |
|||
"category:pt_stops": "Paradas y estaciones", |
|||
"category:public": null, |
|||
"category:railway-electrification": null, |
|||
"category:railway-infrastructure": null, |
|||
"category:religion": null, |
|||
"category:residential": null, |
|||
"category:resources": null, |
|||
"category:shop": null, |
|||
"category:sport": null, |
|||
"category:tourism_attractions": null, |
|||
"category:tourism_services": null, |
|||
"category:transport_alternative": null, |
|||
"category:walk_amenities": null, |
|||
"category:waste": null, |
|||
"category:water": null, |
|||
"category:wikipedia": null, |
|||
"category:works": null, |
|||
"category:cycle_infrastructure": null, |
|||
"category:leisure": "", |
|||
"category:military": "", |
|||
"category:mtb-routes": "", |
|||
"category:natural": "", |
|||
"category:other": "", |
|||
"category:outdoor": "", |
|||
"category:phone": "", |
|||
"category:places": "", |
|||
"category:places_geo": "", |
|||
"category:playgrounds": "", |
|||
"category:post": "", |
|||
"category:power": "", |
|||
"category:pt": "", |
|||
"category:pt:stops": "Paradas y estaciones", |
|||
"category:pt:routes": "", |
|||
"category:pt_amenities": "", |
|||
"category:public": "", |
|||
"category:railway-electrification": "", |
|||
"category:railway-infrastructure": "", |
|||
"category:railway-routes": "", |
|||
"category:religion": "", |
|||
"category:residential": "", |
|||
"category:resources": "", |
|||
"category:shop": "", |
|||
"category:sport": "", |
|||
"category:tourism_attractions": "", |
|||
"category:tourism_services": "", |
|||
"category:transport_alternative": "", |
|||
"category:walk_amenities": "", |
|||
"category:waste": "", |
|||
"category:water": "", |
|||
"category:wikipedia": "", |
|||
"category:works": "", |
|||
"category:leisure_sport_shopping": "Ocio, deporte y compras", |
|||
"category:services": "Servicios" |
|||
} |
@ -0,0 +1,71 @@ |
|||
{ |
|||
"category:administrative": "Regiões administrativas", |
|||
"category:agriculture": "Agricultura", |
|||
"category:alternative_amenities": "", |
|||
"category:alternative_routes": "Rotas", |
|||
"category:buildings": "Edifícios", |
|||
"category:car_amenities": "", |
|||
"category:car_furniture": "Mobiliário urbano", |
|||
"category:car_maxspeed": "Velocidade máxima", |
|||
"category:children": "", |
|||
"category:communication": "Comunicação", |
|||
"category:construction": "Locais de construção", |
|||
"category:craft": "Artesanato", |
|||
"category:culture": "Cultura", |
|||
"category:culture_religion": "Cultura e religião", |
|||
"category:cycle_amenities": "", |
|||
"category:cycle_routes": "Ciclovias", |
|||
"category:education": "Educação", |
|||
"category:emergency": "Emergência", |
|||
"category:financial": "Finanças", |
|||
"category:gastro-smoking": "Restauração livre de tabaco", |
|||
"category:gastro": "Restauração", |
|||
"category:health": "Saúde", |
|||
"category:hiking_routes": "Rotas de caminhada", |
|||
"category:historic": "Histórico", |
|||
"category:index": "", |
|||
"category:internet": "Acesso à Internet", |
|||
"category:leisure": "Lazer", |
|||
"category:military": "Militar", |
|||
"category:mtb-routes": "", |
|||
"category:natural": "Formações naturais", |
|||
"category:other": "Outros", |
|||
"category:outdoor": "", |
|||
"category:phone": "Telefone", |
|||
"category:places": "Lugares", |
|||
"category:places_geo": "Lugares", |
|||
"category:playgrounds": "Parques infantis", |
|||
"category:post": "Correios", |
|||
"category:power": "Eletricidade", |
|||
"category:pt": "", |
|||
"category:pt:stops": "", |
|||
"category:pt:routes": "Rotas", |
|||
"category:pt_amenities": "", |
|||
"category:public": "Serviços públicos", |
|||
"category:railway-electrification": "Eletrificação ferroviária", |
|||
"category:railway-infrastructure": "Infraestrutura ferroviária", |
|||
"category:railway-routes": "", |
|||
"category:religion": "Religião", |
|||
"category:residential": "Áreas residenciais", |
|||
"category:resources": "Extração de recursos", |
|||
"category:shop": "Compras", |
|||
"category:sport": "Desporto", |
|||
"category:tourism_attractions": "Turismo", |
|||
"category:tourism_services": "Turismo", |
|||
"category:transport_alternative": "", |
|||
"category:walk_amenities": "", |
|||
"category:waste": "Lixo", |
|||
"category:water": "Massas de água", |
|||
"category:wikipedia": "Wikipédia", |
|||
"category:works": "Fábricas", |
|||
"category:infrastructure": "Infraestrutura", |
|||
"category:leisure_sport_shopping": "Lazer, desporto e compras", |
|||
"category:railway": "Linhas ferroviárias", |
|||
"category:services": "Serviços", |
|||
"category:special": "Especial", |
|||
"category:transport": "Transportes", |
|||
"category:transport_car": "Transporte individual", |
|||
"category:transport_cycle": "Ciclismo", |
|||
"category:transport_pt": "Transportes públicos", |
|||
"category:transport_walk": "Pedestre" |
|||
} |
@ -0,0 +1,51 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Mountain bike routes", |
|||
"fr": "Itinéraires de VTT" |
|||
}, |
|||
"query": { |
|||
"13": "relation[type=route][route=mtb]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"description": "{{ tagTrans('route', 'mtb') }}", |
|||
"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 %}", |
|||
"styles": "", |
|||
"markerSymbol": "" |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set refs = [] %}", |
|||
"", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.ref %}", |
|||
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|||
" {% endif %}", |
|||
"{% endfor %}" |
|||
], |
|||
"body": [ |
|||
"<h4>Routes</h4>", |
|||
"<ul class='overpass-layer-list'>", |
|||
"{% for master in masters %}", |
|||
" <li data-object=\"{{ master.id }}\">", |
|||
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: '#007fff' })|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', 'mtb') }}</span>", |
|||
" </li>", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"listExclude": "1", |
|||
"style": { |
|||
"color": "#007fff", |
|||
"width": 4, |
|||
"opacity": 1, |
|||
"text": "{{ refs|join(' ') }} ", |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
{ |
|||
"type": "index", |
|||
"name": { |
|||
"de": "Freiluftaktivitäten", |
|||
"en": "Outdoor activities", |
|||
"fr": "Activités de plein air" |
|||
}, |
|||
"subCategories": [ |
|||
{ |
|||
"id": "mtb-routes" |
|||
} |
|||
] |
|||
} |
@ -0,0 +1,193 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "ÖV Karte", |
|||
"en": "Public transport map" |
|||
}, |
|||
"query": { |
|||
"12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];", |
|||
"14": [ |
|||
"(", |
|||
"relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];", |
|||
"relation[type=public_transport][public_transport=stop_area];", |
|||
")" |
|||
] |
|||
}, |
|||
"lists": { |
|||
"stops": { |
|||
"prefix": "listStops", |
|||
"name": { |
|||
"ast": "Paraes y estaciones", |
|||
"cs": "Zastávky & Stanice", |
|||
"de": "Haltestellen", |
|||
"el": "Στάσεις & Σταθμοί", |
|||
"en": "Stops & Stations", |
|||
"es": "Paradas y estaciones", |
|||
"fr": "Arrêts/Stops, Stations", |
|||
"hu": "Megállók és állomások", |
|||
"it": "Stazioni e fermate", |
|||
"ja": "停留所と駅", |
|||
"nl": "Haltes en Stations", |
|||
"pl": "Przystanki i Stacje", |
|||
"pt-br": "Paradas e Estações", |
|||
"ru": "Остановки и станции", |
|||
"uk": "Зупинки та станції" |
|||
} |
|||
}, |
|||
"routes": { |
|||
"prefix": "listRoutes", |
|||
"name": { |
|||
"de": "Routen", |
|||
"en": "Routes", |
|||
"fr": "Lignes", |
|||
"pt": "Rotas", |
|||
"pt-br": "Rotas" |
|||
} |
|||
} |
|||
}, |
|||
"feature": { |
|||
"pre": "{% set isStopArea = tags.public_transport == 'stop_area' %}", |
|||
"title": [ |
|||
"{% if tags.ref %}{{ tags.ref }} - {% endif %}", |
|||
"", |
|||
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}" |
|||
], |
|||
"description": "{{ tagTrans('route', tags.route) }}", |
|||
"body": [ |
|||
"<h4>Stops</h4><ul>", |
|||
"{% for member in members %}", |
|||
"{% if member.tags.highway == 'bus_stop' or member.tags.amenity == 'bus_station' or member.tags.amenity == 'ferry_terminal' or member.tags.railway == 'tram_stop' or member.tags.railway == 'halt' or member.tags.railway == 'station' or member.tags.aerialway == 'station' or member.tags.public_transport == 'stop_position' or member.role|slice(-4) == 'stop' %}", |
|||
"<li data-object='{{ member.id }}' data-sublayer='member'><b>{{ member.tags.name|default(member.id) }}</li>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"markerSymbol": "", |
|||
"styles": "", |
|||
"listStopsExclude": "true", |
|||
"listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}", |
|||
"listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}", |
|||
"listRoutesExclude": "{{ isStopArea }}" |
|||
}, |
|||
"members": true, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set stopName = '' %}", |
|||
"{% set isStop = false %}", |
|||
"{% set stopCount = 0 %}", |
|||
"{% if tags.highway == 'bus_stop' or tags.amenity == 'bus_station' or tags.amenity == 'ferry_terminal' or tags.railway == 'tram_stop' or tags.railway == 'halt' or tags.railway == 'station' or tags.aerialway == 'station' or tags.public_transport == 'stop_position' %}{% set isStop = true %}{% endif %}", |
|||
"{% set isWay = false %}", |
|||
"{% set aRoute = null %}", |
|||
"{% set refs = [] %}", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.public_transport == 'stop_area' %}", |
|||
" {% set stopName = master.tags.name %}", |
|||
" {% else %}", |
|||
" {% if master.role|matches('^(|.*stop)$') and isStop %}", |
|||
" {% set isStop = true %}", |
|||
" {% set stopCount = stopCount + 1 %}", |
|||
" {% elseif master.role|matches('^(|forward|backward)$') and type == 'way' %}", |
|||
" {% set isWay = true %}", |
|||
" {% endif %}", |
|||
" {% set aRoute = master %}", |
|||
"", |
|||
" {% if master.tags.ref %}", |
|||
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|||
" {% endif %}", |
|||
" {% endif %}", |
|||
"{% endfor %}", |
|||
"", |
|||
"{% set refs = refs|unique|natsort({ insensitive: true }) %}", |
|||
"{% set color = const[aRoute.tags.route].color %}" |
|||
], |
|||
"title": "{% if isStop %}{{ tags.name|default(stopName)|default(id) }}{% endif %}", |
|||
"body": [ |
|||
"<h4>Routes</h4>", |
|||
"<ul class='overpass-layer-list'>", |
|||
"{% for master in masters %}", |
|||
" {% if master.tags.public_transport != 'stop_area' %}", |
|||
" <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>", |
|||
" </li>", |
|||
" {% endif %}", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"styles": "{% if isStop and stopCount > 0 %}stop{% elseif isWay %}way{% else %}{% endif %}", |
|||
"listStopsMarkerSign": null, |
|||
"listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}", |
|||
"listStopsExclude": "{{ not isStop or stopCount == 0 }}", |
|||
"listStopsTitle": "{{ tags.name|default(stopName)|default(id) }}", |
|||
"listStopsDescription": "{{ refs|join(' ') }}", |
|||
"listRoutesExclude": "true", |
|||
"style:way": { |
|||
"width": "3", |
|||
"color": "{{ color|default('#ff0000') }}", |
|||
"text": "{{ refs|join(' ') }} ", |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold" |
|||
}, |
|||
"style:stop": { |
|||
"width": "5", |
|||
"color": "{{ color|default('#ff0000') }}", |
|||
"radius": "3" |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('route', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"train": { |
|||
"sign": "<img src='maki:rail?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#00007f" |
|||
}, |
|||
"subway": { |
|||
"sign": "<img src='maki:rail-metro?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#0000ff" |
|||
}, |
|||
"monorail": { |
|||
"sign": "<span style='color: #ffffff'>M</span>", |
|||
"zoom": 12, |
|||
"color": "#006f8f" |
|||
}, |
|||
"tram": { |
|||
"sign": "<img src='maki:rail-light?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#7f007f" |
|||
}, |
|||
"bus": { |
|||
"sign": "<img src='maki:bus?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#af0000" |
|||
}, |
|||
"trolleybus": { |
|||
"sign": "<img src='maki:bus?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#af3f00" |
|||
}, |
|||
"aerialway": { |
|||
"sign": "<img src='maki:aerialway?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#00aaaa" |
|||
}, |
|||
"ferry": { |
|||
"sign": "<img src='maki:ferry?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#007fff" |
|||
} |
|||
} |
|||
} |
@ -1,81 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Routen", |
|||
"en": "Routes", |
|||
"fr": "Lignes", |
|||
"pt-br": "Rotas" |
|||
}, |
|||
"query": { |
|||
"12": "relation[type=route][route~\"^(subway|monorail|ferry|train)$\"];", |
|||
"14": "relation[type=route][route~\"^(subway|monorail|aerialway|bus|trolleybus|ferry|train|tram)$\"];" |
|||
}, |
|||
"feature": { |
|||
"title": [ |
|||
"{% if tags.ref %}{{ tags.ref }} - {% endif %}", |
|||
"", |
|||
"{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}" |
|||
], |
|||
"description": "{{ tagTrans('route', tags.route) }}", |
|||
"listMarkerSign": "{{ const[tags.route].sign|raw }}", |
|||
"markerSymbol": null, |
|||
"listMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}", |
|||
"style": { |
|||
"color": "{{ const[tags.route].color }}" |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({fillColor:data.color})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('route', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"train": { |
|||
"sign": "<img src='maki:rail?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#202020" |
|||
}, |
|||
"subway": { |
|||
"sign": "<img src='maki:rail-metro?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#00007f" |
|||
}, |
|||
"monorail": { |
|||
"sign": "<span style='color: #ffffff'>M</span>", |
|||
"zoom": 12, |
|||
"color": "#006f8f" |
|||
}, |
|||
"tram": { |
|||
"sign": "<img src='maki:rail-light?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#7f007f" |
|||
}, |
|||
"bus": { |
|||
"sign": "<img src='maki:bus?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#af0000" |
|||
}, |
|||
"trolleybus": { |
|||
"sign": "<img src='maki:bus?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#af3f00" |
|||
}, |
|||
"aerialway": { |
|||
"sign": "<img src='maki:aerialway?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#00aaaa" |
|||
}, |
|||
"ferry": { |
|||
"sign": "<img src='maki:ferry?fill=#ffffff'>", |
|||
"zoom": 12, |
|||
"color": "#007fff" |
|||
} |
|||
} |
|||
} |
@ -1,48 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"ast": "Paraes y estaciones", |
|||
"cs": "Zastávky & Stanice", |
|||
"de": "Haltestellen", |
|||
"el": "Στάσεις & Σταθμοί", |
|||
"en": "Stops & Stations", |
|||
"es": "Paradas y estaciones", |
|||
"fr": "Arrêts/Stops, Stations", |
|||
"hu": "Megállók és állomások", |
|||
"it": "Stazioni e fermate", |
|||
"ja": "停留所と駅", |
|||
"nl": "Haltes en Stations", |
|||
"pl": "Przystanki i Stacje", |
|||
"pt-br": "Paradas e Estações", |
|||
"ru": "Остановки и станции", |
|||
"uk": "Зупинки та станції" |
|||
}, |
|||
"query": { |
|||
"14": [ |
|||
"(", |
|||
"node[railway~\"^(station|halt|tram_stop|platform)$\"];", |
|||
"way[railway~\"^(station|platform)$\"];", |
|||
"node[highway~\"^(bus_stop|platform)$\"];", |
|||
"way[highway~\"^(platform)$\"];", |
|||
"node[public_transport~\"^(stop_position|platform)$\"];", |
|||
"way[public_transport~\"^(platform)$\"];", |
|||
"node[amenity~\"^(ferry_terminal|bus_station)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.amenity in [ 'ferry_terminal', 'bus_station' ] %}", |
|||
" {% set key = 'amenity' %}", |
|||
" {% set value = tags.amenity %}", |
|||
"{% elseif tags.railway == 'platform' or tags.highway == 'platform' or tags.public_transport == 'platform' %}", |
|||
" {% set key = 'public_transport' %}", |
|||
" {% set value = 'platform' %}", |
|||
"{% else %}", |
|||
" {% set key = 'public_transport' %}", |
|||
" {% set value = 'stop_position' %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": "{{ tagTrans(key, value) }}" |
|||
} |
|||
} |
@ -0,0 +1,58 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Railway Routes", |
|||
"fr": "Lignes ferroviaires" |
|||
}, |
|||
"query": { |
|||
"12": "relation[type=route][route=railway]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"pre": "{% set color = '#' ~ tags.operator|default('')|md5|slice(0, 6) %}", |
|||
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': color })|raw }}", |
|||
"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 %}", |
|||
"styles": "", |
|||
"markerSymbol": "" |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set refs = [] %}", |
|||
"{% set color = '#d41d8c' %}", |
|||
"", |
|||
"{% 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 %}" |
|||
], |
|||
"title": "", |
|||
"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" |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue