Compare commits
merge into: OpenStreetBrowser:master
OpenStreetBrowser:aboriginal_lands
OpenStreetBrowser:bug-43
OpenStreetBrowser:buildings
OpenStreetBrowser:climbing
OpenStreetBrowser:cycle_infrastructure
OpenStreetBrowser:cycleway
OpenStreetBrowser:filter
OpenStreetBrowser:fitness_trail
OpenStreetBrowser:fossil
OpenStreetBrowser:heritage
OpenStreetBrowser:leisure-restruct
OpenStreetBrowser:master
OpenStreetBrowser:maxspeed
OpenStreetBrowser:office
OpenStreetBrowser:osm-qa
OpenStreetBrowser:parking-lanes
OpenStreetBrowser:pattern
OpenStreetBrowser:pedestrian
OpenStreetBrowser:places
OpenStreetBrowser:pt
OpenStreetBrowser:railway-electrification
OpenStreetBrowser:shop-bulk_purchase
pull from: OpenStreetBrowser:fitness_trail
OpenStreetBrowser:aboriginal_lands
OpenStreetBrowser:bug-43
OpenStreetBrowser:buildings
OpenStreetBrowser:climbing
OpenStreetBrowser:cycle_infrastructure
OpenStreetBrowser:cycleway
OpenStreetBrowser:filter
OpenStreetBrowser:fitness_trail
OpenStreetBrowser:fossil
OpenStreetBrowser:heritage
OpenStreetBrowser:leisure-restruct
OpenStreetBrowser:master
OpenStreetBrowser:maxspeed
OpenStreetBrowser:office
OpenStreetBrowser:osm-qa
OpenStreetBrowser:parking-lanes
OpenStreetBrowser:pattern
OpenStreetBrowser:pedestrian
OpenStreetBrowser:places
OpenStreetBrowser:pt
OpenStreetBrowser:railway-electrification
OpenStreetBrowser:shop-bulk_purchase
104 Commits
master
...
fitness_tr
83 changed files with 1819 additions and 668 deletions
-
2administrative.json
-
13agriculture.json
-
1alternative_amenities.json
-
2alternative_routes.json
-
4buildings.json
-
7car_amenities.json
-
4car_furniture.json
-
4car_maxspeed.json
-
59car_routes.json
-
3children.json
-
2communication.json
-
4construction.json
-
76craft.json
-
2culture.json
-
6culture_religion.json
-
17cycle_amenities.json
-
93cycle_routes.json
-
5detailsBody.html
-
4education.json
-
28emergency.json
-
6financial.json
-
92fitness_trail.json
-
69gastro-smoking.json
-
16gastro.json
-
33health.json
-
94hiking_routes.json
-
4historic.json
-
65index.json
-
3internet.json
-
35lang/ast.json
-
103lang/ca.json
-
35lang/cs.json
-
15lang/de.json
-
65lang/el.json
-
17lang/en.json
-
105lang/es.json
-
71lang/et.json
-
69lang/fr.json
-
67lang/hu.json
-
43lang/it.json
-
41lang/ja.json
-
37lang/nl.json
-
87lang/pl.json
-
71lang/pt-br.json
-
71lang/pt.json
-
59lang/ro.json
-
43lang/ru.json
-
61lang/template.json
-
57lang/uk.json
-
2leisure.json
-
2military.json
-
52mtb-routes.json
-
4natural.json
-
4other.json
-
17outdoor.json
-
3phone.json
-
2places.json
-
2places_geo.json
-
2playgrounds.json
-
26popupBody.html
-
4post.json
-
2power.json
-
194pt.json
-
1pt_amenities.json
-
80pt_routes.json
-
47pt_stops.json
-
2public.json
-
10railway-electrification.json
-
21railway-infrastructure.json
-
59railway-routes.json
-
24religion.json
-
2residential.json
-
2resources.json
-
4shop.json
-
6sport.json
-
4tourism_attractions.json
-
6tourism_services.json
-
1transport_alternative.json
-
3walk_amenities.json
-
4waste.json
-
12water.json
-
5wikipedia.json
-
4works.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" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,76 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Handwerk", |
|||
"en": "Craft", |
|||
"fr": "Artisanat", |
|||
"pt": "Artesanato", |
|||
"pt-br": "Ofícios" |
|||
}, |
|||
"query": { |
|||
"15": "(node[craft];way[craft];relation[craft];);" |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('craft', tags.craft) }}", |
|||
"markerSign": "{% set craft0 = tags.craft|split(';')[0] %}{% if const.crafts[craft0] %}{% set v = const.crafts[craft0] %}{% else %}{% set v = const.default %}{% endif %}{% if v|slice(0, 3) == 'fa-' %}<i class=\"fa {{ v }}\"></i>{% else %}{{ v|raw }}{% endif %}" |
|||
}, |
|||
"const": { |
|||
"default": "", |
|||
"crafts": { |
|||
"bakery": "fa-birthday-cake", |
|||
"beekeeper": "🐝", |
|||
"blacksmith": "🔨", |
|||
"boatbuilder": "⛵", |
|||
"bookbinder": "📕", |
|||
"brewery": "fa-beer", |
|||
"builder": "🚧", |
|||
"carpenter": "", |
|||
"carpet_layer": "", |
|||
"caterer": "fa-birthday-cake", |
|||
"chimney_sweeper": "", |
|||
"clockmaker": "⌚", |
|||
"confectionery": "", |
|||
"distillery": "🍷", |
|||
"dressmaker": "👚", |
|||
"electrician": "🔌", |
|||
"floorer": "", |
|||
"gardener": "⚘", |
|||
"glaziery": "", |
|||
"handicraft": "", |
|||
"hvac": "", |
|||
"insulation": "", |
|||
"jeweller": "💍", |
|||
"key_cutter": "🔑", |
|||
"locksmith": "🔑", |
|||
"metal_construction": "", |
|||
"optician": "👓", |
|||
"painter": "🖌", |
|||
"parquet_layer": "", |
|||
"photographer": "📷", |
|||
"photographic_laboratory": "📷", |
|||
"piano_tuner": "", |
|||
"plasterer": "", |
|||
"plumber": "", |
|||
"pottery": "", |
|||
"rigger": "", |
|||
"roofer": "", |
|||
"saddler": "🐎", |
|||
"sailmaker": "⛵", |
|||
"sawmill": "", |
|||
"scaffolder": "", |
|||
"sculptor": "", |
|||
"shoemaker": "👞", |
|||
"stand_builder": "", |
|||
"stonemason": "", |
|||
"sun_protection": "", |
|||
"tailor": "👚", |
|||
"tiler": "", |
|||
"tinsmith": "", |
|||
"turner": "", |
|||
"upholsterer": "", |
|||
"watchmaker": "⌚", |
|||
"window_construction": "", |
|||
"winery": "🍷" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,92 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Fitness trails" |
|||
}, |
|||
"query": { |
|||
"14": "relation[type=route][route=fitness_trail]" |
|||
}, |
|||
"members": true, |
|||
"feature": { |
|||
"body": [ |
|||
"{% set countMembers = 0 %}", |
|||
"{% for member in members %}", |
|||
"{% if const.roles[member.role] %}", |
|||
"{% if countMembers == 0 %}<h4>Route</h4><ul class='overpass-layer-list'>{% endif %}", |
|||
"{% set countMembers = countMembers + 1 %}", |
|||
"<li data-object='{{ member.id }}' data-sublayer='member'>", |
|||
" <span class='markerParent'><div class='marker'>{{ markerCircle({})|raw }}</div><div class='icon'>{{ const.roles[member.role].sign|raw }}</div></span>", |
|||
" <span class='title'>{{ member.tags.name|default(trans('loading')) }}</span>", |
|||
"</li>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if countMembers > 0 %}</ul>{% endif %}" |
|||
], |
|||
"description": "{{ tagTrans('route', 'fitness_trail') }}", |
|||
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}", |
|||
"markerSymbol": "", |
|||
"style": { |
|||
"opacity": 0, |
|||
"z-index": 1, |
|||
"width": 4 |
|||
}, |
|||
"style:hover": { |
|||
"width": "4", |
|||
"color": "#000000", |
|||
"radius": "4" |
|||
} |
|||
}, |
|||
"memberFeature": { |
|||
"pre": [ |
|||
"{% set master0 = masters[0] %}" |
|||
], |
|||
"title": "{{ tags.name }}", |
|||
"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'>{{ master.tags.name }}</span>", |
|||
" <span class='description'>{{ tagTrans('route', master.tags.route) }}</span>", |
|||
" </li>", |
|||
"{% endfor %}", |
|||
"</ul>" |
|||
], |
|||
"listExclude": "1", |
|||
"style": { |
|||
"color": "{{ '#007fff' }}", |
|||
"width": 4, |
|||
"opacity": 1, |
|||
"textRepeat": "1", |
|||
"textOffset": "12", |
|||
"textFontWeight": "bold", |
|||
"radius": "3" |
|||
}, |
|||
"style:hover": { |
|||
"radius": "4" |
|||
}, |
|||
"markerSymbol": "{% if const.roles[master0.role] %}{{ markerPointer({})|raw }}{% endif %}", |
|||
"markerSign": "{% if const.roles[master0.role] %}{{ const.roles[master0.role].sign|raw }}{% endif %} ", |
|||
"popupReplace": "{% if masters|length == 1 %}{{ master0.id }}{% endif %}" |
|||
}, |
|||
"const": { |
|||
"roles": { |
|||
"station": { |
|||
"sign": "<img src='maki:pitch'>" |
|||
}, |
|||
"information": { |
|||
"sign": "🛈" |
|||
}, |
|||
"start": { |
|||
"sign": "⚐" |
|||
}, |
|||
"stop": { |
|||
"sign": "🏁" |
|||
}, |
|||
"start_stop": { |
|||
"sign": "⚐" |
|||
} |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,69 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Rauchfreie Gastronomie", |
|||
"en": "Smokefree Gastronomy", |
|||
"fr": "Restauration sans tabac", |
|||
"pt": "Restauração livre de tabaco", |
|||
"pt-br": "Gastronomia sem fumo" |
|||
}, |
|||
"query": { |
|||
"16": "(node[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];way[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];relation[amenity~'^(bar|biergarten|cafe|fast_food|ice_cream|pub|restaurant)$'];);" |
|||
}, |
|||
"feature": { |
|||
"pre": [ |
|||
"{% if tags.smoking == 'yes' or tags.smoking == 'dedicated' %}", |
|||
" {% set smoking_color='red' %}", |
|||
" {% set smoking_icon='🚬' %}", |
|||
"{% elseif tags.smoking == 'separated' or tags.smoking == 'isolated' %}", |
|||
" {% set smoking_color='#ffdf00' %}", |
|||
" {% set smoking_icon='🚬' %}", |
|||
"{% elseif tags.smoking == 'no' or tags.smoking == 'outside' or tags.smokefree == 'yes' %}", |
|||
" {% set smoking_color='#00ff00' %}", |
|||
" {% set smoking_icon='🚭' %}", |
|||
"{% else %}", |
|||
" {% set smoking_color='white' %}", |
|||
" {% set smoking_icon='' %}", |
|||
"{% endif %}" |
|||
], |
|||
"description": "{{ tagTrans('amenity', tags.amenity) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-cutlery\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('cuisine') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('cuisine', tags.cuisine)|default(trans('unknown')) }}</span>", |
|||
" </li>", |
|||
" <li class='hasSymbol'>", |
|||
" <span class='symbol'>🚬</span>", |
|||
" <span class='key'>{{ keyTrans('smoking') }}:</span>", |
|||
" <span class='value'>{% if tags.smoking %}{{ tagTrans('smoking', tags.smoking) }}{% else %}{{ trans('unknown') }}{% endif %}</span>", |
|||
" </li>", |
|||
"</ul>" |
|||
], |
|||
"markerSign": "{% if tags.amenity=='bar' %}🍸{% elseif tags.amenity=='biergarten'%}🍻{% elseif tags.amenity=='cafe' %}☕{% elseif tags.amenity=='fast_food' %}🍔{% elseif tags.amenity=='ice_cream' %}🍨{% elseif tags.amenity=='pub' %}🍺{% else %}🍴{% endif %}", |
|||
"markerSymbol": "{{ markerPointer({\"fillColor\": smoking_color })|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({\"fillColor\": smoking_color })|raw }}" |
|||
}, |
|||
"info": [ |
|||
"{{ keyTrans('smoking') }}:", |
|||
"<table>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({ \"fillColor\": \"#00ff00\" })|raw }}</td>", |
|||
" <td>{{ tagTrans('smoking', 'no') }}, {{ tagTrans('smoking', 'outside') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({ \"fillColor\": \"#ffdf00\" })|raw }}</td>", |
|||
" <td>{{ tagTrans('smoking', 'separated') }}, {{ tagTrans('smoking', 'isolated') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({ \"fillColor\": \"red\" })|raw }}</td>", |
|||
" <td>{{ tagTrans('smoking', 'yes') }}, {{ tagTrans('smoking', 'dedicated') }}</td>", |
|||
" </tr>", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({ \"fillColor\": \"white\" })|raw }}</td>", |
|||
" <td>{{ trans('unknown') }}</td>", |
|||
" </tr>", |
|||
"</table>" |
|||
] |
|||
} |
@ -1,58 +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:gastro": null, |
|||
"category:health": null, |
|||
"category:hiking_routes": null, |
|||
"category:historic": null, |
|||
"category:index": null, |
|||
"category:financial": "", |
|||
"category:gastro-smoking": "", |
|||
"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,58 +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:gastro": null, |
|||
"category:health": null, |
|||
"category:hiking_routes": null, |
|||
"category:historic": null, |
|||
"category:index": null, |
|||
"category:financial": "", |
|||
"category:gastro-smoking": "", |
|||
"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": "Divisão político-administrativa", |
|||
"category:agriculture": "Agricultura", |
|||
"category:alternative_amenities": "Equipamentos", |
|||
"category:alternative_routes": "Rotas", |
|||
"category:buildings": "Edificações", |
|||
"category:car_amenities": "Equipamentos", |
|||
"category:car_furniture": "Mobiliário urbano", |
|||
"category:car_maxspeed": "Velocidade máxima", |
|||
"category:children": "Equipamentos infantis", |
|||
"category:communication": "Comunicação", |
|||
"category:construction": "Terrenos vazios e obras", |
|||
"category:craft": "Ofícios", |
|||
"category:culture": "Cultura", |
|||
"category:culture_religion": "Cultura", |
|||
"category:cycle_amenities": "Equipamentos", |
|||
"category:cycle_routes": "Ciclorrotas", |
|||
"category:education": "Educação", |
|||
"category:emergency": "Emergência", |
|||
"category:financial": "Finanças", |
|||
"category:gastro-smoking": "Gastronomia sem fumo", |
|||
"category:gastro": "Gastronomia", |
|||
"category:health": "Saúde e assistência", |
|||
"category:hiking_routes": "Rotas de caminhada", |
|||
"category:historic": "Histórico", |
|||
"category:index": "Índice", |
|||
"category:internet": "Acesso à Internet", |
|||
"category:leisure": "Lazer", |
|||
"category:military": "Militar", |
|||
"category:mtb-routes": "Rotas mountain bike", |
|||
"category:natural": "Formações naturais", |
|||
"category:other": "Outros", |
|||
"category:outdoor": "Atividades ao ar livre", |
|||
"category:phone": "Telefone", |
|||
"category:places": "Lugares", |
|||
"category:places_geo": "Lugares", |
|||
"category:playgrounds": "Parquinhos", |
|||
"category:post": "Correios", |
|||
"category:power": "Energia", |
|||
"category:pt": "Mapa de transporte público", |
|||
"category:pt:stops": "Paradas e estações", |
|||
"category:pt:routes": "Rotas", |
|||
"category:pt_amenities": "Equipamentos", |
|||
"category:public": "Serviços públicos", |
|||
"category:railway-electrification": "Eletrificação ferroviária", |
|||
"category:railway-infrastructure": "Infraestrutura ferroviária", |
|||
"category:railway-routes": "Rotas ferroviárias", |
|||
"category:religion": "Religião", |
|||
"category:residential": "Áreas residenciais", |
|||
"category:resources": "Extração de recursos", |
|||
"category:shop": "Compras", |
|||
"category:sport": "Esportes", |
|||
"category:tourism_attractions": "Turismo", |
|||
"category:tourism_services": "Serviços de turismo", |
|||
"category:transport_alternative": "Transporte alternativo", |
|||
"category:walk_amenities": "Equipamentos", |
|||
"category:waste": "Lixo", |
|||
"category:water": "Hidrografia", |
|||
"category:wikipedia": "Wikipédia", |
|||
"category:works": "Fábricas", |
|||
"category:infrastructure": "Infraestrutura", |
|||
"category:leisure_sport_shopping": "Lazer, esportes e compras", |
|||
"category:railway": "Ferrovia", |
|||
"category:services": "Prestação de serviços", |
|||
"category:special": "Especial", |
|||
"category:transport": "Transportes", |
|||
"category:transport_car": "Tráfego individual", |
|||
"category:transport_cycle": "Ciclismo", |
|||
"category:transport_pt": "Transporte público", |
|||
"category:transport_walk": "Pedestre" |
|||
} |
@ -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,61 @@ |
|||
{ |
|||
"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": "", |
|||
"category:culture_religion": "", |
|||
"category:cycle_amenities": "", |
|||
"category:cycle_routes": "", |
|||
"category:education": "", |
|||
"category:emergency": "", |
|||
"category:financial": "", |
|||
"category:gastro-smoking": "", |
|||
"category:gastro": "", |
|||
"category:health": "", |
|||
"category:hiking_routes": "", |
|||
"category:historic": "", |
|||
"category:index": "", |
|||
"category:internet": "", |
|||
"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": "" |
|||
} |
@ -0,0 +1,52 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Mountain bike routes", |
|||
"fr": "Itinéraires de VTT", |
|||
"pt-br": "Rotas mountain bike" |
|||
}, |
|||
"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,17 @@ |
|||
{ |
|||
"type": "index", |
|||
"name": { |
|||
"de": "Freiluftaktivitäten", |
|||
"en": "Outdoor activities", |
|||
"fr": "Activités de plein air", |
|||
"pt-br": "Atividades ao ar livre" |
|||
}, |
|||
"subCategories": [ |
|||
{ |
|||
"id": "mtb-routes" |
|||
}, |
|||
{ |
|||
"id": "fitness_trail" |
|||
} |
|||
] |
|||
} |
@ -0,0 +1,194 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "ÖV Karte", |
|||
"en": "Public transport map", |
|||
"pt-br": "Mapa de transporte público" |
|||
}, |
|||
"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,80 +0,0 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"de": "Routen", |
|||
"en": "Routes", |
|||
"fr": "Lignes" |
|||
}, |
|||
"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,47 +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", |
|||
"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,59 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Railway Routes", |
|||
"fr": "Lignes ferroviaires", |
|||
"pt-br": "Rotas ferroviárias" |
|||
}, |
|||
"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