Skip to content

Commit ff7a594

Browse files
authored
Map theme improvements (#1303)
1 parent 66d69cc commit ff7a594

4 files changed

Lines changed: 89 additions & 21 deletions

File tree

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

Lines changed: 23 additions & 6 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 43 2nd May 2026-->
7+
<!-- Version 44 17th July 2026-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -631,10 +631,12 @@
631631

632632
<style-line id="residential" stroke="#FFFFFF" width="1.3" />
633633

634-
<!-- track|footway|path|cycleway -->
634+
<!-- track|footway|path|cycleway|raceway -->
635635
<style-line cap="butt" fix="true" id="footway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aaffffff" width="1.8" />
636636
<style-line cap="butt" fix="true" id="cycleway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aaffffff" width="2.8" />
637-
<style-line id="highway:cycleway" stipple-stroke="#4040ee" use="cycleway" width="0.1" />
637+
<style-line cap="butt" fix="true" id="raceway" stroke="#808080" width="1.0" />
638+
<style-line id="highway:cycleway" stipple-stroke="#4040ee" use="cycleway" width="0.1" />
639+
<style-line id="highway:raceway" stipple-stroke="#808080" use="raceway" width="1.0" />
638640
<style-line id="highway:track" stipple="3" stipple-stroke="#a39b68" use="footway" width="0.1" />
639641
<style-line id="highway:path" stipple="2" stipple-stroke="#837b58" use="footway" width="0.1" />
640642
<style-line id="footway:z17" stroke="#faf8f5" width="0.3" />
@@ -1092,7 +1094,7 @@
10921094

10931095
<!-- railway tracks, not in a tunnel -->
10941096
<m e="way" k="tunnel" v="~|no|false">
1095-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1097+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused">
10961098
<m zoom-min="11" zoom-max="15">
10971099
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#737373" width="1.8" />
10981100
</m>
@@ -1101,6 +1103,11 @@
11011103
</m>
11021104
</m>
11031105
</m>
1106+
<m k="railway" v="abandoned">
1107+
<m zoom-min="14">
1108+
<line cap="butt" stroke="#e6e6e6" width="0.8" stipple="3" stipple-stroke="#A0CCCCCC" stipple-width="0.4"/>
1109+
</m>
1110+
</m>
11041111

11051112
<!-- highways/roads -->
11061113
<m k="highway">
@@ -1156,6 +1163,11 @@
11561163
<line use="highway:cycleway" />
11571164
</m>
11581165
</m>
1166+
<m v="raceway">
1167+
<m zoom-min="14">
1168+
<line use="highway:raceway" />
1169+
</m>
1170+
</m>
11591171
<m cat="off_road" v="byway|track">
11601172
<m e="way" k="tracktype" v="grade1">
11611173
<line stroke="#cbc0b3" width="0.6" />
@@ -1447,7 +1459,7 @@
14471459

14481460
<!-- railway tracks, not on a bridge or in a tunnel -->
14491461
<m e="way" k="bridge|tunnel" v="no|false">
1450-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1462+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|monorail|disused">
14511463
<m zoom-min="11" zoom-max="15">
14521464
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#737373" width="1.8" />
14531465
</m>
@@ -1456,6 +1468,11 @@
14561468
</m>
14571469
</m>
14581470
</m>
1471+
<m k="railway" v="abandoned">
1472+
<m zoom-min="14">
1473+
<line cap="butt" stroke="#e6e6e6" width="0.8" stipple="3" stipple-stroke="#A0CCCCCC" stipple-width="0.4"/>
1474+
</m>
1475+
</m>
14591476

14601477
<!-- railway bridges -->
14611478
<m e="way" k="bridge" v="yes|true|viaduct|aqueduct|suspension|culvert|swing">
@@ -1549,7 +1566,7 @@
15491566
</m>
15501567
<!-- this makes toll roads (ie: France) easier to spot -->
15511568
<m v="toll_booth" zoom-min="15">
1552-
<symbol src="assets:symbols/barrier/gate.svg" />
1569+
<symbol src="assets:symbols/barrier/lift_gate.svg" />
15531570
<text use="poi-emergency" />
15541571
</m>
15551572
</m>

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

Lines changed: 22 additions & 5 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 "dark" theme based on the Biker map theme -->
7-
<!-- Version 43 2nd May 2026-->
7+
<!-- Version 44 17th July 2026-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -631,10 +631,12 @@
631631

632632
<style-line id="residential" stroke="#FFFFFF" width="1.3" />
633633

634-
<!-- track|footway|path|cycleway -->
634+
<!-- track|footway|path|cycleway|raceway -->
635635
<style-line cap="butt" fix="true" id="footway" stipple="2" stipple-stroke="#665233" stipple-width="0.6" stroke="#aa55442b" width="1.8" />
636636
<style-line cap="butt" fix="true" id="cycleway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aa55442b" width="2.8" />
637+
<style-line cap="butt" fix="true" id="raceway" stroke="#808080" width="1.0" />
637638
<style-line id="highway:cycleway" stipple-stroke="#0e0ea4" use="cycleway" width="0.1" />
639+
<style-line id="highway:raceway" stipple-stroke="#808080" use="raceway" width="1.0" />
638640
<style-line id="highway:track" stipple="3" stipple-stroke="#a39b68" use="footway" width="0.1" />
639641
<style-line id="highway:path" stipple="2" stipple-stroke="#665233" use="footway" width="0.1" />
640642
<style-line id="footway:z17" stroke="#665233" width="0.3" />
@@ -1092,7 +1094,7 @@
10921094

10931095
<!-- railway tracks, not in a tunnel -->
10941096
<m e="way" k="tunnel" v="~|no|false">
1095-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1097+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused">
10961098
<m zoom-min="11" zoom-max="15">
10971099
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#a6a6a6" stipple-width="0.8" stroke="#737373" width="1.8" />
10981100
</m>
@@ -1101,6 +1103,11 @@
11011103
</m>
11021104
</m>
11031105
</m>
1106+
<m k="railway" v="abandoned">
1107+
<m zoom-min="14">
1108+
<line cap="butt" stroke="#8c8c8c" width="0.8" stipple="3" stipple-stroke="#A04d4d4d" stipple-width="0.4"/>
1109+
</m>
1110+
</m>
11041111

11051112
<!-- highways/roads -->
11061113
<m k="highway">
@@ -1156,6 +1163,11 @@
11561163
<line use="highway:cycleway" />
11571164
</m>
11581165
</m>
1166+
<m v="raceway">
1167+
<m zoom-min="14">
1168+
<line use="highway:raceway" />
1169+
</m>
1170+
</m>
11591171
<m cat="off_road" v="byway|track">
11601172
<m e="way" k="tracktype" v="grade1">
11611173
<line stroke="#89755d" width="0.6" />
@@ -1447,7 +1459,7 @@
14471459

14481460
<!-- railway tracks, not on a bridge or in a tunnel -->
14491461
<m e="way" k="bridge|tunnel" v="no|false">
1450-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1462+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|monorail|disused">
14511463
<m zoom-min="11" zoom-max="15">
14521464
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#333333" width="1.8" />
14531465
</m>
@@ -1456,6 +1468,11 @@
14561468
</m>
14571469
</m>
14581470
</m>
1471+
<m k="railway" v="abandoned">
1472+
<m zoom-min="14">
1473+
<line cap="butt" stroke="#8c8c8c" width="0.8" stipple="3" stipple-stroke="#A04d4d4d" stipple-width="0.4"/>
1474+
</m>
1475+
</m>
14591476

14601477
<!-- railway bridges -->
14611478
<m e="way" k="bridge" v="yes|true|viaduct|aqueduct|suspension|culvert|swing">
@@ -1549,7 +1566,7 @@
15491566
</m>
15501567
<!-- this makes toll roads (ie: France) easier to spot -->
15511568
<m v="toll_booth" zoom-min="15">
1552-
<symbol src="assets:symbols/barrier/gate.svg" />
1569+
<symbol src="assets:symbols/barrier/lift_gate.svg" />
15531570
<text use="poi-emergency" />
15541571
</m>
15551572
</m>

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

Lines changed: 22 additions & 5 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 OpenGL/VTM "Indigo" theme based on the Biker map theme -->
7-
<!-- Version 43 2nd May 2026-->
7+
<!-- Version 44 17th July 2026-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -631,10 +631,12 @@
631631

632632
<style-line id="residential" stroke="#FFFFFF" width="1.3" />
633633

634-
<!-- track|footway|path|cycleway -->
634+
<!-- track|footway|path|cycleway|raceway -->
635635
<style-line cap="butt" fix="true" id="footway" stipple="2" stipple-stroke="#55442b" stipple-width="0.6" stroke="#aaffffff" width="1.8" />
636636
<style-line cap="butt" fix="true" id="cycleway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aaffffff" width="2.8" />
637+
<style-line cap="butt" fix="true" id="raceway" stroke="#808080" width="1.0" />
637638
<style-line id="highway:cycleway" stipple-stroke="#0a0a75" use="cycleway" width="0.1" />
639+
<style-line id="highway:raceway" stipple-stroke="#808080" use="raceway" width="1.0" />
638640
<style-line id="highway:track" stipple="3" stipple-stroke="#a39b68" use="footway" width="0.1" />
639641
<style-line id="highway:path" stipple="2" stipple-stroke="#55442b" use="footway" width="0.1" />
640642
<style-line id="footway:z17" stroke="#55442b" width="0.3" />
@@ -1092,7 +1094,7 @@
10921094

10931095
<!-- railway tracks, not in a tunnel -->
10941096
<m e="way" k="tunnel" v="~|no|false">
1095-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1097+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused">
10961098
<m zoom-min="11" zoom-max="15">
10971099
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#a6a6a6" stipple-width="0.8" stroke="#666666" width="1.8" />
10981100
</m>
@@ -1101,6 +1103,11 @@
11011103
</m>
11021104
</m>
11031105
</m>
1106+
<m k="railway" v="abandoned">
1107+
<m zoom-min="14">
1108+
<line cap="butt" stroke="#8c8c8c" width="0.8" stipple="3" stipple-stroke="#A04d4d4d" stipple-width="0.4"/>
1109+
</m>
1110+
</m>
11041111

11051112
<!-- highways/roads -->
11061113
<m k="highway">
@@ -1156,6 +1163,11 @@
11561163
<line use="highway:cycleway" />
11571164
</m>
11581165
</m>
1166+
<m v="raceway">
1167+
<m zoom-min="14">
1168+
<line use="highway:raceway" />
1169+
</m>
1170+
</m>
11591171
<m cat="off_road" v="byway|track">
11601172
<m e="way" k="tracktype" v="grade1">
11611173
<line stroke="#cbc0b3" width="0.6" />
@@ -1447,7 +1459,7 @@
14471459

14481460
<!-- railway tracks, not on a bridge or in a tunnel -->
14491461
<m e="way" k="bridge|tunnel" v="no|false">
1450-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1462+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|monorail|disused">
14511463
<m zoom-min="11" zoom-max="15">
14521464
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#333333" width="1.8" />
14531465
</m>
@@ -1456,6 +1468,11 @@
14561468
</m>
14571469
</m>
14581470
</m>
1471+
<m k="railway" v="abandoned">
1472+
<m zoom-min="14">
1473+
<line cap="butt" stroke="#8c8c8c" width="0.8" stipple="3" stipple-stroke="#A04d4d4d" stipple-width="0.4"/>
1474+
</m>
1475+
</m>
14591476

14601477
<!-- railway bridges -->
14611478
<m e="way" k="bridge" v="yes|true|viaduct|aqueduct|suspension|culvert|swing">
@@ -1549,7 +1566,7 @@
15491566
</m>
15501567
<!-- this makes toll roads (ie: France) easier to spot -->
15511568
<m v="toll_booth" zoom-min="15">
1552-
<symbol src="assets:symbols/barrier/gate.svg" />
1569+
<symbol src="assets:symbols/barrier/lift_gate.svg" />
15531570
<text use="poi-emergency" />
15541571
</m>
15551572
</m>

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

Lines changed: 22 additions & 5 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 43 2nd May 2026-->
7+
<!-- Version 44 17th July 2026-->
88

99
<!-- Defines LAYERS Menu -->
1010
<stylemenu defaultlang="en" defaultvalue="normal" id="menu">
@@ -631,10 +631,12 @@
631631

632632
<style-line id="residential" stroke="#FFFFFF" width="1.3" />
633633

634-
<!-- track|footway|path|cycleway -->
634+
<!-- track|footway|path|cycleway|raceway -->
635635
<style-line cap="butt" fix="true" id="footway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aaffffff" width="1.8" />
636636
<style-line cap="butt" fix="true" id="cycleway" stipple="2" stipple-stroke="#a39b68" stipple-width="0.6" stroke="#aaffffff" width="2.8" />
637+
<style-line cap="butt" fix="true" id="raceway" stroke="#808080" width="1.0" />
637638
<style-line id="highway:cycleway" stipple-stroke="#4040ee" use="cycleway" width="0.1" />
639+
<style-line id="highway:raceway" stipple-stroke="#808080" use="raceway" width="1.0" />
638640
<style-line id="highway:track" stipple="3" stipple-stroke="#a39b68" use="footway" width="0.1" />
639641
<style-line id="highway:path" stipple="2" stipple-stroke="#837b58" use="footway" width="0.1" />
640642
<style-line id="footway:z17" stroke="#faf8f5" width="0.3" />
@@ -1092,7 +1094,7 @@
10921094

10931095
<!-- railway tracks, not in a tunnel -->
10941096
<m e="way" k="tunnel" v="~|no|false">
1095-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1097+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused">
10961098
<m zoom-min="11" zoom-max="15">
10971099
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#737373" width="1.8" />
10981100
</m>
@@ -1101,6 +1103,11 @@
11011103
</m>
11021104
</m>
11031105
</m>
1106+
<m k="railway" v="abandoned">
1107+
<m zoom-min="14">
1108+
<line cap="butt" stroke="#e6e6e6" width="0.8" stipple="3" stipple-stroke="#A0CCCCCC" stipple-width="0.4"/>
1109+
</m>
1110+
</m>
11041111

11051112
<!-- highways/roads -->
11061113
<m k="highway">
@@ -1156,6 +1163,11 @@
11561163
<line use="highway:cycleway" />
11571164
</m>
11581165
</m>
1166+
<m v="raceway">
1167+
<m zoom-min="14">
1168+
<line use="highway:raceway" />
1169+
</m>
1170+
</m>
11591171
<m cat="off_road" v="byway|track">
11601172
<m e="way" k="tracktype" v="grade1">
11611173
<line stroke="#cbc0b3" width="0.6" />
@@ -1447,7 +1459,7 @@
14471459

14481460
<!-- railway tracks, not on a bridge or in a tunnel -->
14491461
<m e="way" k="bridge|tunnel" v="no|false">
1450-
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|disused|abandoned">
1462+
<m k="railway" v="rail|tram|light_rail|narrow_gauge|preserved|funicular|miniature|monorail|disused">
14511463
<m zoom-min="11" zoom-max="15">
14521464
<line cap="butt" fade="12" fix="true" stipple="10" stipple-stroke="#e6e6e6" stipple-width="0.8" stroke="#737373" width="1.8" />
14531465
</m>
@@ -1456,6 +1468,11 @@
14561468
</m>
14571469
</m>
14581470
</m>
1471+
<m k="railway" v="abandoned">
1472+
<m zoom-min="14">
1473+
<line cap="butt" stroke="#e6e6e6" width="0.8" stipple="3" stipple-stroke="#A0CCCCCC" stipple-width="0.4"/>
1474+
</m>
1475+
</m>
14591476

14601477
<!-- railway bridges -->
14611478
<m e="way" k="bridge" v="yes|true|viaduct|aqueduct|suspension|culvert|swing">
@@ -1549,7 +1566,7 @@
15491566
</m>
15501567
<!-- this makes toll roads (ie: France) easier to spot -->
15511568
<m v="toll_booth" zoom-min="15">
1552-
<symbol src="assets:symbols/barrier/gate.svg" />
1569+
<symbol src="assets:symbols/barrier/lift_gate.svg" />
15531570
<text use="poi-emergency" />
15541571
</m>
15551572
</m>

0 commit comments

Comments
 (0)