Browse Source

fitness_trail: new category

fitness_trail
parent
commit
1966f3f948
  1. 58
      fitness_trail.json
  2. 3
      outdoor.json

58
fitness_trail.json

@ -0,0 +1,58 @@
{
"type": "overpass",
"name": {
"en": "Fitness trails"
},
"query": {
"14": "relation[type=route][route=fitness_trail]"
},
"members": true,
"feature": {
"body": [
"<h4>Stations</h4><ul>",
"{% for member in members %}",
"{% if member.role == 'station' %}",
"<li data-object='{{ member.id }}' data-sublayer='member'>{{ member.tags.name|default(trans('loading')) }}</li>",
"{% endif %}",
"{% endfor %}",
"</ul>"
],
"description": "{{ tagTrans('route', 'fitness_trail') }}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
"styles": "",
"markerSymbol": "",
"style:hover": {
"width": "4",
"color": "#000000",
"radius": "4"
}
},
"memberFeature": {
"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"
}
}
}

3
outdoor.json

@ -9,6 +9,9 @@
"subCategories": [
{
"id": "mtb-routes"
},
{
"id": "fitness_trail"
}
]
}
Loading…
Cancel
Save