Skip to content

Commit 1dc2ee6

Browse files
committed
Motorider and Biker map theme improvements, #1183, #1192
1 parent 6c3401c commit 1dc2ee6

File tree

2 files changed

+97
-7
lines changed

2 files changed

+97
-7
lines changed

vtm-themes/resources/assets/vtm/biker.xml

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://opensciencemap.org/rendertheme https://raw.githubusercontent.com/mapsforge/vtm/master/resources/rendertheme.xsd">
55

66
<!-- This is the 2nd generation OpenGL/VTM "Biker" theme -->
7-
<!-- Version 27 12th April 2025-->
7+
<!-- Version 29 14th May 2025-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -299,7 +299,7 @@
299299
<layer id="map_detail">
300300
<name lang="ar" value="مزيد من تفاصيل الخريطة" />
301301
<name lang="ca" value="Més detalls del mapa" />
302-
<name lang="cs" value="Další podrobnosti o silnicích" />
302+
<name lang="cs" value="Více detailů v mapě" />
303303
<name lang="de" value="Weitere Kartendetails" />
304304
<name lang="el" value="Περισσότερες λεπτομέρειες χάρτη" />
305305
<name lang="en" value="More map details" />
@@ -312,6 +312,22 @@
312312
<name lang="zh" value="更多地图详情" />
313313
<cat id="map_detail" />
314314
</layer>
315+
<layer id="toll_roads">
316+
<name lang="ar" value="الطرق ذات الرسوم" />
317+
<name lang="ca" value="autopistes de peatge" />
318+
<name lang="cs" value="Zpoplatněné silnice" />
319+
<name lang="de" value="Mautstraßen" />
320+
<name lang="el" value="Δρόμοι με διόδια" />
321+
<name lang="en" value="Toll roads" />
322+
<name lang="es" value="Autopistas de peaje" />
323+
<name lang="fr" value="Routes à péage" />
324+
<name lang="it" value="Strade a pedaggio" />
325+
<name lang="ko" value="유료 도로" />
326+
<name lang="nl" value="Tolwegen" />
327+
<name lang="pl" value="Drogi płatne" />
328+
<name lang="zh" value="收费公路" />
329+
<cat id="toll_roads" />
330+
</layer>
315331
<layer enabled="true" id="nature">
316332
<name lang="ar" value="الغطاء النباتي" />
317333
<name lang="ca" value="Vegetació" />
@@ -348,6 +364,7 @@
348364
<overlay id="housenumber" />
349365
<overlay id="off_road" />
350366
<overlay id="map_detail" />
367+
<overlay id="toll_roads" />
351368
<overlay id="nature" />
352369
</layer>
353370
</stylemenu>
@@ -448,6 +465,8 @@
448465
<!-- Road and Rail Colors, road casings/outlines are defined in the "highway" section -->
449466
<style-line cap="butt" id="road-motorway-thin" stroke="#e892a2" width="1.5" />
450467
<style-line cap="butt" id="road-motorway-core" stroke="#e892a2" width="2.2" />
468+
<style-line id="road-motorway-toll-thin" stipple="6" stipple-stroke="#ff0000" stipple-width="1.0" stroke="#e892a2" width="1.5" />
469+
<style-line id="road-highway-toll" dasharray="5,10" cap="butt" stroke="#FF0000" width="2.2" />
451470
<style-line cap="butt" id="road-trunk-thin" stroke="#f9b29c" width="1.5" />
452471
<style-line cap="butt" id="road-trunk-core" stroke="#f9b29c" width="2.5" />
453472
<style-line id="road-primary-thin" stroke="#ffc982" width="1.0" />
@@ -821,7 +840,7 @@
821840
</m>
822841
</m>
823842
<!-- non-physical routes -->
824-
<m k="route" v="ferry">
843+
<m k="route" v="ferry" zoom-min="11">
825844
<line dasharray="5,5" cap="butt" stroke="#5b7ad7" width="0.8" />
826845
<m zoom-min="13">
827846
<text use="ferry" />
@@ -945,6 +964,9 @@
945964
<!-- Low Zoom, only motorways -->
946965
<m v="motorway">
947966
<line outline="road-minor-outline" use="road-motorway-thin" />
967+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
968+
<line outline="road-minor-outline" use="road-motorway-toll-thin" />
969+
</m>
948970
</m>
949971
</m>
950972
</m>
@@ -1071,6 +1093,9 @@
10711093
</m>
10721094
<m zoom-min="10">
10731095
<line outline="road-major-outline" use="road-primary-core" />
1096+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1097+
<line outline="road-major-outline" use="road-highway-toll" />
1098+
</m>
10741099
</m>
10751100
</m>
10761101
<m v="trunk|trunk_link">
@@ -1079,10 +1104,16 @@
10791104
</m>
10801105
<m zoom-min="9">
10811106
<line outline="road-major-outline" use="road-trunk-core" />
1107+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1108+
<line outline="road-major-outline" use="road-highway-toll" />
1109+
</m>
10821110
</m>
10831111
</m>
10841112
<m v="motorway|motorway_link">
10851113
<line outline="road-major-outline" use="road-motorway-core" />
1114+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1115+
<line outline="road-major-outline" use="road-highway-toll" />
1116+
</m>
10861117
</m>
10871118
</m> <!-- end area=~|no|false -->
10881119
</m><!-- end tunnel|bridge=~|no|false -->
@@ -1169,12 +1200,21 @@
11691200
</m>
11701201
<m v="primary">
11711202
<line cap="butt" outline="road-bridge" use="road-primary-core" />
1203+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1204+
<line outline="road-bridge" use="road-highway-toll" />
1205+
</m>
11721206
</m>
11731207
<m v="trunk">
11741208
<line cap="butt" outline="road-bridge" use="road-trunk-core" />
1209+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1210+
<line outline="road-bridge" use="road-highway-toll" />
1211+
</m>
11751212
</m>
11761213
<m v="motorway">
11771214
<line cap="butt" outline="road-bridge" use="road-motorway-core" />
1215+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1216+
<line outline="road-major-outline" use="road-highway-toll" />
1217+
</m>
11781218
</m>
11791219
</m>
11801220
</m><!-- end area=~|no|false -->
@@ -1343,6 +1383,11 @@
13431383
<symbol src="assets:symbols/barrier/lift_gate.svg" />
13441384
</m>
13451385
</m>
1386+
<!-- this makes toll roads (ie: France) easier to spot -->
1387+
<m v="toll_booth" zoom-min="15">
1388+
<symbol src="assets:symbols/barrier/gate.svg" />
1389+
<text use="poi-emergency" />
1390+
</m>
13461391
</m>
13471392

13481393
<!-- place -->

vtm-themes/resources/assets/vtm/motorider.xml

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xsi:schemaLocation="http://opensciencemap.org/rendertheme https://raw.githubusercontent.com/mapsforge/vtm/master/resources/rendertheme.xsd">
55

66
<!-- This is the 2nd generation OpenGL/VTM "light" theme based on the Biker map theme-->
7-
<!-- Version 27 12th April 2025-->
7+
<!-- Version 29 14th May 2025-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -299,7 +299,7 @@
299299
<layer id="map_detail">
300300
<name lang="ar" value="مزيد من تفاصيل الخريطة" />
301301
<name lang="ca" value="Més detalls del mapa" />
302-
<name lang="cs" value="Další podrobnosti o silnicích" />
302+
<name lang="cs" value="Více detailů v mapě" />
303303
<name lang="de" value="Weitere Kartendetails" />
304304
<name lang="el" value="Περισσότερες λεπτομέρειες χάρτη" />
305305
<name lang="en" value="More map details" />
@@ -312,6 +312,22 @@
312312
<name lang="zh" value="更多地图详情" />
313313
<cat id="map_detail" />
314314
</layer>
315+
<layer id="toll_roads">
316+
<name lang="ar" value="الطرق ذات الرسوم" />
317+
<name lang="ca" value="autopistes de peatge" />
318+
<name lang="cs" value="Zpoplatněné silnice" />
319+
<name lang="de" value="Mautstraßen" />
320+
<name lang="el" value="Δρόμοι με διόδια" />
321+
<name lang="en" value="Toll roads" />
322+
<name lang="es" value="Autopistas de peaje" />
323+
<name lang="fr" value="Routes à péage" />
324+
<name lang="it" value="Strade a pedaggio" />
325+
<name lang="ko" value="유료 도로" />
326+
<name lang="nl" value="Tolwegen" />
327+
<name lang="pl" value="Drogi płatne" />
328+
<name lang="zh" value="收费公路" />
329+
<cat id="toll_roads" />
330+
</layer>
315331
<layer enabled="true" id="nature">
316332
<name lang="ar" value="الغطاء النباتي" />
317333
<name lang="ca" value="Vegetació" />
@@ -348,6 +364,7 @@
348364
<overlay id="housenumber" />
349365
<overlay id="off_road" />
350366
<overlay id="map_detail" />
367+
<overlay id="toll_roads" />
351368
<overlay id="nature" />
352369
</layer>
353370
</stylemenu>
@@ -448,7 +465,9 @@
448465
<!-- Road and Rail Colors, road casings/outlines are defined in the "highway" section -->
449466
<style-line cap="butt" id="road-motorway-thin" stroke="#98afcd" width="1.5" />
450467
<style-line cap="butt" id="road-motorway-core" stroke="#98afcd" width="2.2" />
451-
<style-line cap="butt" id="road-trunk-thin" stroke="#00CC66" width="1.5" />
468+
<style-line id="road-motorway-toll-thin" stipple="6" stipple-stroke="#ff0000" stipple-width="1.0" stroke="#98afcd" width="1.5" />
469+
<style-line id="road-highway-toll" dasharray="5,10" cap="butt" stroke="#FF0000" width="2.2" />
470+
<style-line cap="butt" id="road-trunk-thin" stroke="#00CC66" width="1.5" />
452471
<style-line cap="butt" id="road-trunk-core" stroke="#00CC66" width="2.5" />
453472
<style-line id="road-primary-thin" stroke="#ff9999" width="1.0" />
454473
<style-line id="road-primary-core" stroke="#ff9999" width="2.2" />
@@ -821,7 +840,7 @@
821840
</m>
822841
</m>
823842
<!-- non-physical routes -->
824-
<m k="route" v="ferry">
843+
<m k="route" v="ferry" zoom-min="11">
825844
<line dasharray="5,5" cap="butt" stroke="#5b7ad7" width="0.8" />
826845
<m zoom-min="13">
827846
<text use="ferry" />
@@ -945,6 +964,9 @@
945964
<!-- Low Zoom, only motorways -->
946965
<m v="motorway">
947966
<line outline="road-minor-outline" use="road-motorway-thin" />
967+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
968+
<line outline="road-minor-outline" use="road-motorway-toll-thin" />
969+
</m>
948970
</m>
949971
</m>
950972
</m>
@@ -1071,6 +1093,9 @@
10711093
</m>
10721094
<m zoom-min="10">
10731095
<line outline="road-major-outline" use="road-primary-core" />
1096+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1097+
<line outline="road-major-outline" use="road-highway-toll" />
1098+
</m>
10741099
</m>
10751100
</m>
10761101
<m v="trunk|trunk_link">
@@ -1079,10 +1104,16 @@
10791104
</m>
10801105
<m zoom-min="9">
10811106
<line outline="road-major-outline" use="road-trunk-core" />
1107+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1108+
<line outline="road-major-outline" use="road-highway-toll" />
1109+
</m>
10821110
</m>
10831111
</m>
10841112
<m v="motorway|motorway_link">
10851113
<line outline="road-major-outline" use="road-motorway-core" />
1114+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1115+
<line outline="road-major-outline" use="road-highway-toll" />
1116+
</m>
10861117
</m>
10871118
</m> <!-- end area=~|no|false -->
10881119
</m><!-- end tunnel|bridge=~|no|false -->
@@ -1169,12 +1200,21 @@
11691200
</m>
11701201
<m v="primary">
11711202
<line cap="butt" outline="road-bridge" use="road-primary-core" />
1203+
<m cat="toll_roads" e="way" k="toll" v="tl_yes">
1204+
<line outline="road-bridge" use="road-highway-toll" />
1205+
</m>
11721206
</m>
11731207
<m v="trunk">
11741208
<line cap="butt" outline="road-bridge" use="road-trunk-core" />
1209+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1210+
<line outline="road-bridge" use="road-highway-toll" />
1211+
</m>
11751212
</m>
11761213
<m v="motorway">
11771214
<line cap="butt" outline="road-bridge" use="road-motorway-core" />
1215+
<m cat="toll_roads" e="way" k="toll" v="tl_yes" zoom-min="6">
1216+
<line outline="road-major-outline" use="road-highway-toll" />
1217+
</m>
11781218
</m>
11791219
</m>
11801220
</m><!-- end area=~|no|false -->
@@ -1343,6 +1383,11 @@
13431383
<symbol src="assets:symbols/barrier/lift_gate.svg" />
13441384
</m>
13451385
</m>
1386+
<!-- this makes toll roads (ie: France) easier to spot -->
1387+
<m v="toll_booth" zoom-min="15">
1388+
<symbol src="assets:symbols/barrier/gate.svg" />
1389+
<text use="poi-emergency" />
1390+
</m>
13461391
</m>
13471392

13481393
<!-- place -->

0 commit comments

Comments
 (0)