|
|
@ -13,12 +13,62 @@ |
|
|
|
"12": "relation[type=route][route=bicycle][network~'^(icn|ncn|rcn)$']", |
|
|
|
"15": "relation[type=route][route=bicycle]" |
|
|
|
}, |
|
|
|
"members": true, |
|
|
|
"feature": { |
|
|
|
"priority": "{% if tags.network=='icn' %}0{% elseif tags.network=='ncn' %}1{% elseif tags.network=='rcn' %}2{% else %}3{% endif %}", |
|
|
|
"priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}", |
|
|
|
"description": "{{ tagTrans('network', tags.network) }}", |
|
|
|
"styles": "" |
|
|
|
}, |
|
|
|
"memberFeature": { |
|
|
|
"pre": [ |
|
|
|
"{% set priority = 4 %}", |
|
|
|
"{% set network = '' %}", |
|
|
|
"{% set refs = [] %}", |
|
|
|
"", |
|
|
|
"{% for master in masters %}", |
|
|
|
" {% set _p = {icn:0,ncn:1,rcn:2,lcn:3}[master.tags.network] %}", |
|
|
|
" {% if _p < priority %}", |
|
|
|
" {% set priority = _p %}", |
|
|
|
" {% set network = master.tags.network %}", |
|
|
|
" {% endif %}", |
|
|
|
" {% if master.tags.ref %}", |
|
|
|
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|
|
|
" {% endif %}", |
|
|
|
"{% endfor %}" |
|
|
|
], |
|
|
|
"title": "", |
|
|
|
"body": [ |
|
|
|
"<ul>", |
|
|
|
"{% for master in masters %}", |
|
|
|
" {% if master.tags.public_transport != 'stop_area' %}", |
|
|
|
" <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b> <i>{{ tagTrans('network', master.tags.network) }}</li>", |
|
|
|
" {% endif %}", |
|
|
|
"{% endfor %}", |
|
|
|
"</ul>" |
|
|
|
], |
|
|
|
"listExclude": "1", |
|
|
|
"style": { |
|
|
|
"color": "{{ const[network].color }}", |
|
|
|
"width": 4, |
|
|
|
"color": "{% if tags.network=='icn' %}#ff0000{% elseif tags.network=='ncn' %}#ff007f{% elseif tags.network=='rcn' %}#7f00ff{% else %}#0000ff{% endif %}", |
|
|
|
"opacity": 1 |
|
|
|
"opacity": 1, |
|
|
|
"text": "{{ refs|join(' ') }} ", |
|
|
|
"textRepeat": "1", |
|
|
|
"textOffset": "12", |
|
|
|
"textFontWeight": "bold" |
|
|
|
} |
|
|
|
}, |
|
|
|
"const": { |
|
|
|
"icn": { |
|
|
|
"color": "#ff0000" |
|
|
|
}, |
|
|
|
"ncn": { |
|
|
|
"color": "#ff007f" |
|
|
|
}, |
|
|
|
"rcn": { |
|
|
|
"color": "#7f00ff" |
|
|
|
}, |
|
|
|
"lcn": { |
|
|
|
"color": "#0000ff" |
|
|
|
} |
|
|
|
} |
|
|
|
} |