Browse Source

cycle_routes: add map key, list symbols, improve colors

pedestrian
parent
commit
37d21ec7e1
  1. 27
      cycle_routes.json

27
cycle_routes.json

@ -17,6 +17,7 @@
"feature": { "feature": {
"priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}", "priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}",
"description": "{{ tagTrans('network', tags.network) }}", "description": "{{ tagTrans('network', tags.network) }}",
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].color })|raw }}",
"styles": "" "styles": ""
}, },
"memberFeature": { "memberFeature": {
@ -59,16 +60,32 @@
}, },
"const": { "const": {
"icn": { "icn": {
"color": "#ff0000"
"color": "#ff0000",
"zoom": 6
}, },
"ncn": { "ncn": {
"color": "#ff007f"
"color": "#ff00ba",
"zoom": 9
}, },
"rcn": { "rcn": {
"color": "#7f00ff"
"color": "#ba00ff",
"zoom": 12
}, },
"lcn": { "lcn": {
"color": "#0000ff"
"color": "#0000ff",
"zoom": 15
} }
}
},
"info": [
"<table>",
"{% for value, data in const %}",
"{% if data.zoom <= map.zoom %}",
" <tr>",
" <td>{{ markerLine({ 'width': 4, color: data.color })|raw }}</td>",
" <td>{{ tagTrans('network', value) }}</td>",
" </tr>",
"{% endif %}",
"{% endfor %}",
"</table>"
]
} }
Loading…
Cancel
Save