diff --git a/whitewater.json b/whitewater.json new file mode 100644 index 00000000..2d0d5242 --- /dev/null +++ b/whitewater.json @@ -0,0 +1,53 @@ +{ + "type": "overpass", + "name": { + "en": "Mountain bike routes", + "fr": "Itinéraires de VTT", + "hu": "Hegyikerékpáros útvonalak", + "pt-br": "Rotas de 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 }}{% 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": [ + "

Routes

", + "" + ], + "listExclude": "1", + "style": { + "color": "#007fff", + "width": 4, + "opacity": 1, + "text": "{{ refs|join(' · ') }} ", + "textRepeat": "1", + "textOffset": "12", + "textFontWeight": "bold" + } + } +}