diff --git a/cycle_routes.json b/cycle_routes.json
index d5ad8feef..44509f6bc 100644
--- a/cycle_routes.json
+++ b/cycle_routes.json
@@ -17,8 +17,10 @@
"feature": {
"priority": "{{ {icn:0,ncn:1,rcn:2,lcn:3}[tags.network] }}",
"description": "{{ tagTrans('network', tags.network) }}",
- "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].color })|raw }}",
- "styles": ""
+ "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network].color|default(const[''].color) })|raw }}",
+ "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
+ "styles": "",
+ "markerSymbol": ""
},
"memberFeature": {
"pre": [
@@ -42,7 +44,11 @@
"
Routes
",
"",
"{% for master in masters %}",
- " - {{ master.tags.name|default(master.tags.ref) }}{% if master.tags.network %} {{ tagTrans('network', master.tags.network) }}{% endif %}
",
+ " - ",
+ " {{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}",
+ " {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
+ " {{ tagTrans('network', master.tags.network) }}",
+ "
",
"{% endfor %}",
"
"
],
diff --git a/hiking_routes.json b/hiking_routes.json
index 486238b4c..964a70131 100644
--- a/hiking_routes.json
+++ b/hiking_routes.json
@@ -17,8 +17,10 @@
"feature": {
"priority": "{{ {iwn:0,nwn:1,rwn:2,lwn:3}[tags.network]|default(4) }}",
"description": "{% if tags.network %}{{ tagTrans('network', tags.network) }}{% endif %}",
- "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network|default('')].color })|raw }}",
- "styles": ""
+ "listMarkerSymbol": "{{ markerLine({ 'width': 4, 'color': const[tags.network|default('')].color|default(const[''].color) })|raw }}",
+ "title": "{% if tags.ref and tags.name %}{{ tags.ref }} - {{ tags.name }}{% elseif tags.ref %}{{ tags.ref }}{% elseif tags.name %}{{ tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
+ "styles": "",
+ "markerSymbol": ""
},
"memberFeature": {
"pre": [
@@ -41,7 +43,11 @@
"Routes
",
"",
"{% for master in masters %}",
- " - {{ master.tags.name|default(master.tags.ref) }}{% if master.tags.network %} {{ tagTrans('network', master.tags.network) }}{% endif %}
",
+ " - ",
+ " {{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}",
+ " {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}",
+ " {{ tagTrans('network', master.tags.network) }}",
+ "
",
"{% endfor %}",
"
"
],