diff --git a/index.json b/index.json index 53f5edbef..2853a80b1 100644 --- a/index.json +++ b/index.json @@ -43,6 +43,9 @@ }, { "id": "children" + }, + { + "id": "outdoor" } ] }, diff --git a/mtb-routes.json b/mtb-routes.json new file mode 100644 index 000000000..9793a62a8 --- /dev/null +++ b/mtb-routes.json @@ -0,0 +1,50 @@ +{ + "type": "overpass", + "name": { + "en": "Mountain bike routes" + }, + "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": [ + "

Routes

", + "" + ], + "listExclude": "1", + "style": { + "color": "#007fff", + "width": 4, + "opacity": 1, + "text": "{{ refs|join(' ') }} ", + "textRepeat": "1", + "textOffset": "12", + "textFontWeight": "bold" + } + } +} diff --git a/outdoor.json b/outdoor.json new file mode 100644 index 000000000..eee4acaec --- /dev/null +++ b/outdoor.json @@ -0,0 +1,12 @@ +{ + "type": "index", + "name": { + "de": "Freiluftaktivitäten", + "en": "Outdoor activities" + }, + "subCategories": [ + { + "id": "mtb-routes" + } + ] +}