Browse Source

pt: improvements

- use data-object instead of object
pt
parent
commit
89b8bb41c9
  1. 17
      pt.json

17
pt.json

@ -65,12 +65,13 @@
], ],
"description": "{{ tagTrans('route', tags.route) }}", "description": "{{ tagTrans('route', tags.route) }}",
"body": [ "body": [
"<h4>Stops {{ map.zoom }}</h4>",
"<h4>Stops</h4><ul>",
"{% for member in members %}", "{% for member in members %}",
"{% if member.role|slice(-4) == 'stop' %}", "{% if member.role|slice(-4) == 'stop' %}",
"<div object='{{ member.id }}' sublayer='member'><b>{{ member.tags.name }}</b></div>",
"<li data-object='{{ member.id }}' data-sublayer='member'><b>{{ member.tags.name|default(member.id) }}</li>",
"{% endif %}", "{% endif %}",
"{% endfor %}"
"{% endfor %}",
"</ul>"
], ],
"listStopsExclude": "true", "listStopsExclude": "true",
"listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}", "listRoutesMarkerSign": "{{ const[tags.route].sign|raw }}",
@ -87,11 +88,15 @@
"width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}" "width": "{% if map.zoom>=15 %}5{% else %}3{% endif %}"
}, },
"title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}", "title": "{% if tags.public_transport == 'stop_position' %}{{ tags.name }}{% endif %}",
"listStopsTitle": "{{ tags.name }}<br/>{% for master in masters %}{{ master.tags.ref }} {% endfor %}",
"listStopsTitle": "{{ tags.name }}",
"listStopsDescription": "{% for master in masters %}{{ master.tags.ref }} {% endfor %}",
"body": [ "body": [
"<h4>Routes</h4>",
"<ul>",
"{% for master in masters %}", "{% for master in masters %}",
" '<div object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</b> ({{ master.id }})</div>",
"{% endfor %}"
" <li data-object=\"{{ master.id }}\"><b>{{ master.tags.name|default(master.tags.ref) }}</li>",
"{% endfor %}",
"</ul>"
], ],
"listRoutesExclude": "true", "listRoutesExclude": "true",
"listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}" "listStopsExclude": "{% set isStop = 0 %}{% for master in masters %}{% if master.role|slice(-4) == 'stop' %}{% set isStop = 1 %}{% endif %}{% endfor %}{{ not isStop }}"

Loading…
Cancel
Save