Browse Source

fitness_trail: improvements

fitness_trail
parent
commit
4b4a2f3cb6
  1. 15
      fitness_trail.json

15
fitness_trail.json

@ -9,21 +9,27 @@
"members": true,
"feature": {
"body": [
"<h4>Route</h4><ul class='overpass-layer-list'>",
"{% set countMembers = 0 %}",
"{% for member in members %}",
"{% if const.roles[member.role] %}",
"{% if countMembers == 0 %}<h4>Route</h4><ul class='overpass-layer-list'>{% endif %}",
"{% set countMembers = countMembers + 1 %}",
"<li data-object='{{ member.id }}' data-sublayer='member'>",
" <span class='markerParent'><div class='marker'>{{ markerCircle({})|raw }}</div><div class='icon'>{{ const.roles[member.role].sign|raw }}</div></span>",
" <span class='title'>{{ member.tags.name|default(trans('loading')) }}</span>",
"</li>",
"{% endif %}",
"{% endfor %}",
"</ul>"
"{% if countMembers > 0 %}</ul>{% endif %}"
],
"description": "{{ tagTrans('route', 'fitness_trail') }}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': '#007fff' })|raw }}",
"styles": "",
"markerSymbol": "",
"style": {
"opacity": 0,
"z-index": 1,
"width": 4
},
"style:hover": {
"width": "4",
"color": "#000000",
@ -61,7 +67,8 @@
"radius": "4"
},
"markerSymbol": "{% if const.roles[master0.role] %}{{ markerPointer({})|raw }}{% endif %}",
"markerSign": "{% if const.roles[master0.role] %}{{ const.roles[master0.role].sign|raw }}{% endif %} "
"markerSign": "{% if const.roles[master0.role] %}{{ const.roles[master0.role].sign|raw }}{% endif %} ",
"popupReplace": "{% if masters|length == 1 %}{{ master0.id }}{% endif %}"
},
"const": {
"roles": {

Loading…
Cancel
Save