forked from OpenStreetBrowser/main
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.9 KiB
91 lines
2.9 KiB
{
|
|
"type": "overpass",
|
|
"name": {
|
|
"de": "Wanderrouten",
|
|
"en": "Hiking routes",
|
|
"fr": "Itinéraires pédestres",
|
|
"pt": "Rotas de caminhada",
|
|
"pt-br": "Rotas de Caminhada"
|
|
},
|
|
"query": {
|
|
"10": "relation[type=route][route=hiking][network~\"^(iwn)$\"]",
|
|
"11": "relation[type=route][route=hiking][network~\"^(iwn|nwn)$\"]",
|
|
"12": "relation[type=route][route=hiking][network~\"^(iwn|nwn|rwn)$\"]",
|
|
"14": "relation[type=route][route=hiking]"
|
|
},
|
|
"members": true,
|
|
"feature": {
|
|
"priority": "{{ {iwn:0,nwn:1,rwn:2,lwn:3}[tags.network] }}",
|
|
"description": "{{ tagTrans('network', tags.network) }}",
|
|
"listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].color })|raw }}",
|
|
"styles": ""
|
|
},
|
|
"memberFeature": {
|
|
"pre": [
|
|
"{% set priority = 4 %}",
|
|
"{% set network = '' %}",
|
|
"{% set refs = [] %}",
|
|
"",
|
|
"{% for master in masters %}",
|
|
" {% set _p = {iwn:0,nwn:1,rwn:2,lwn: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) }}</i></li>",
|
|
" {% endif %}",
|
|
"{% endfor %}",
|
|
"</ul>"
|
|
],
|
|
"listExclude": "1",
|
|
"style": {
|
|
"color": "{{ const[network].color }}",
|
|
"width": 4,
|
|
"opacity": 1,
|
|
"text": "{{ refs|join(' ') }} ",
|
|
"textRepeat": "1",
|
|
"textOffset": "12",
|
|
"textFontWeight": "bold"
|
|
}
|
|
},
|
|
"const": {
|
|
"iwn": {
|
|
"color": "#ff0000",
|
|
"zoom": 10
|
|
},
|
|
"nwn": {
|
|
"color": "#ff00ba",
|
|
"zoom": 11
|
|
},
|
|
"rwn": {
|
|
"color": "#ba00ff",
|
|
"zoom": 12
|
|
},
|
|
"lwn": {
|
|
"color": "#0000ff",
|
|
"zoom": 14
|
|
}
|
|
},
|
|
"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>"
|
|
]
|
|
}
|