You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.7 KiB
68 lines
2.7 KiB
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|