|
|
@ -17,8 +17,10 @@ |
|
|
|
"feature": { |
|
|
|
"priority": "{{ {iwn:0,nwn:1,rwn:2,lwn:3}[tags.network]|default(4) }}", |
|
|
|
"description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}", |
|
|
|
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network|default('')].color })|raw }}", |
|
|
|
"styles": "" |
|
|
|
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network|default('')].color|default(const[''].color) })|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": [ |
|
|
@ -41,7 +43,11 @@ |
|
|
|
"<h4>Routes</h4>", |
|
|
|
"<ul>", |
|
|
|
"{% for master in masters %}", |
|
|
|
" <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b>{% if master.tags.network %} <i>{{ tagTrans('network', master.tags.network) }}</i>{% endif %}</li>", |
|
|
|
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>", |
|
|
|
" {{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}", |
|
|
|
" {% 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 %}", |
|
|
|
" <i style='color: #707070'>{{ tagTrans('network', master.tags.network) }}</i>", |
|
|
|
" </li>", |
|
|
|
"{% endfor %}", |
|
|
|
"</ul>" |
|
|
|
], |
|
|
|