-
Notifications
You must be signed in to change notification settings - Fork 11
/
mtb-routes.json
68 lines (68 loc) · 2.75 KB
/
mtb-routes.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"type": "overpass",
"name": {
"ca": "Rutes Ciclistes de Muntanya",
"cs": "Stezky pro horská kola",
"de": "Mointainbikerouten",
"en": "Mountain bike routes",
"es": "Rutas de ciclismo de montaña",
"fr": "Itinéraires de VTT",
"gl": "Rotas de bicicleta de montaña",
"hu": "Hegyikerékpáros útvonalak",
"it": "Percorsi per mountain bike",
"ja": "マウンテンバイクのルート",
"nb": "Terrengsykkelruter",
"nl": "ATB routes",
"oc": "Itineraris de VTT",
"pl": "Trasy dla rowerów górskich",
"pt": "Rotas de bicicleta de montanha",
"pt-br": "Rotas de mountain bike",
"ru": "Маршруты для горных велосипедов",
"sr": "Трасе за планинске бицикле",
"tr": "Dağ bisikleti rotaları"
},
"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 }}{% 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"
}
}
}