Browse Source

pt: order fields as written by openstreetbrowser-editor

fitness_trail
parent
commit
b09b903aa6
  1. 52
      pt.json

52
pt.json

@ -13,7 +13,6 @@
")"
]
},
"members": true,
"lists": {
"stops": {
"prefix": "listStops",
@ -48,8 +47,6 @@
},
"feature": {
"pre": "{% set isStopArea = tags.public_transport == 'stop_area' %}",
"listRoutesExclude": "{{ isStopArea }}",
"styles": "",
"title": [
"{% if tags.ref %}{{ tags.ref }} - {% endif %}",
"",
@ -65,11 +62,14 @@
"{% endfor %}",
"</ul>"
],
"markerSymbol": "",
"styles": "",
"listStopsExclude": "true",
"listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}",
"markerSymbol": null,
"listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}"
"listRoutesMarkerSymbol": "{{ markerCircle({fillColor:const[tags.route].color})|raw }}",
"listRoutesExclude": "{{ isStopArea }}"
},
"members": true,
"memberFeature": {
"pre": [
"{% set stopName = '' %}",
@ -100,29 +100,7 @@
"{% set refs = refs|unique|natsort({ insensitive: true }) %}",
"{% set color = const[aRoute.tags.route].color %}"
],
"listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}",
"listStopsMarkerSign": "",
"styles": "{% if isStop and stopCount > 0 %}stop{% elseif isWay %}way{% else %}{% endif %}",
"style:way": {
"color": [
"{{ color|default('#ff0000') }}"
],
"width": "3",
"text": "{{ refs|join(' ') }} ",
"textRepeat": "1",
"textOffset": "12",
"textFontWeight": "bold"
},
"style:stop": {
"color": [
"{{ color|default('#ff0000') }}"
],
"width": "5",
"radius": 3
},
"title": "{% if isStop %}{{ tags.name|default(stopName)|default(id) }}{% endif %}",
"listStopsTitle": "{{ tags.name|default(stopName)|default(id) }}",
"listStopsDescription": "{{ refs|join(' ') }}",
"body": [
"<h4>Routes</h4>",
"<ul class='overpass-layer-list'>",
@ -137,8 +115,26 @@
"{% endfor %}",
"</ul>"
],
"styles": "{% if isStop and stopCount > 0 %}stop{% elseif isWay %}way{% else %}{% endif %}",
"listStopsMarkerSign": null,
"listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}",
"listStopsExclude": "{{ not isStop or stopCount == 0 }}",
"listStopsTitle": "{{ tags.name|default(stopName)|default(id) }}",
"listStopsDescription": "{{ refs|join(' ') }}",
"listRoutesExclude": "true",
"listStopsExclude": "{{ not isStop or stopCount == 0 }}"
"style:way": {
"width": "3",
"color": "{{ color|default('#ff0000') }}",
"text": "{{ refs|join(' ') }} ",
"textRepeat": "1",
"textOffset": "12",
"textFontWeight": "bold"
},
"style:stop": {
"width": "5",
"color": "{{ color|default('#ff0000') }}",
"radius": "3"
}
},
"info": [
"<table>",

Loading…
Cancel
Save