Created
October 11, 2011 07:01
-
-
Save Miroff/1277481 to your computer and use it in GitHub Desktop.
MapCSS style for railway electrification overlay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Main railways without electrified tags */ | |
| way[!electrified][railway=rail][!service][!usage] { | |
| color: #000; | |
| width: 5; | |
| } | |
| way[!electrified][railway=rail][!service][usage=branch] { | |
| color: #000; | |
| width: 3; | |
| } | |
| way[!electrified][railway=rail][!service][usage=industrial] { | |
| color: #000; | |
| width: 1; | |
| } | |
| /* Constructions and disused ways */ | |
| way[!electrified][railway=construction][!service][!usage] { | |
| color: #000; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[!electrified][railway=construction][!service][usage=branch] { | |
| color: #000; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[!electrified][railway=construction][!service][usage=industrial] { | |
| color: #000; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[!electrified][railway=disused][!service][!usage], | |
| way[!electrified][railway=abandoned][!service][!usage] { | |
| color: #000; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[!electrified][railway=disused][!service][usage=branch], | |
| way[!electrified][railway=abandoned][!service][usage=branch] { | |
| color: #000; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[!electrified][railway=disused][!service][usage=industrial], | |
| way[!electrified][railway=abandoned][!service][usage=industrial] { | |
| color: #000; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| /* Not electrified */ | |
| way[electrified=no][railway=rail][!service][!usage] { | |
| color: blue; | |
| width: 5; | |
| } | |
| way[electrified=no][railway=rail][!service][usage=branch] { | |
| color: blue; | |
| width: 3; | |
| } | |
| way[electrified=no][railway=rail][!service][usage=industrial] { | |
| color: blue; | |
| width: 1; | |
| } | |
| /* Constructions and disused ways */ | |
| way[electrified=no][railway=construction][!service][!usage] { | |
| color: blue; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=no][railway=construction][!service][usage=branch] { | |
| color: blue; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=no][railway=construction][!service][usage=industrial] { | |
| color: blue; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=no][railway=disused][!service][!usage], | |
| way[electrified=no][railway=abandoned][!service][!usage] { | |
| color: blue; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=no][railway=disused][!service][usage=branch], | |
| way[electrified=no][railway=abandoned][!service][usage=branch] { | |
| color: blue; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=no][railway=disused][!service][usage=industrial], | |
| way[electrified=no][railway=abandoned][!service][usage=industrial] { | |
| color: blue; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| /* Electrified, but no details */ | |
| way[electrified][!frequency][!voltage][railway=rail][!service][!usage] { | |
| color: orange; | |
| width: 5; | |
| } | |
| way[electrified][!frequency][!voltage][railway=rail][!service][usage=branch] { | |
| color: orange; | |
| width: 3; | |
| } | |
| way[electrified][!frequency][!voltage][railway=rail][!service][usage=industrial] { | |
| color: orange; | |
| width: 1; | |
| } | |
| /* Constructions and disused ways */ | |
| way[electrified][!frequency][!voltage][railway=construction][!service][!usage] { | |
| color: orange; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified][!frequency][!voltage][railway=construction][!service][usage=branch] { | |
| color: orange; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified][!frequency][!voltage][railway=construction][!service][usage=industrial] { | |
| color: orange; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified][!frequency][!voltage][railway=disused][!service][!usage], | |
| way[electrified][!frequency][!voltage][railway=abandoned][!service][!usage] { | |
| color: orange; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified][!frequency][!voltage][railway=disused][!service][usage=branch], | |
| way[electrified][!frequency][!voltage][railway=abandoned][!service][usage=branch] { | |
| color: orange; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified][!frequency][!voltage][railway=disused][!service][usage=industrial], | |
| way[electrified][!frequency][!voltage][railway=abandoned][!service][usage=industrial] { | |
| color: orange; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| /* Electrified AC 25kV */ | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=rail][!service][!usage] { | |
| color: #b00; | |
| width: 5; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=rail][!service][usage=branch] { | |
| color: #b00; | |
| width: 3; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=rail][!service][usage=industrial] { | |
| color: #b00; | |
| width: 1; | |
| } | |
| /* Constructions and disused ways */ | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=construction][!service][!usage] { | |
| color: #b00; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=construction][!service][usage=branch] { | |
| color: #b00; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=construction][!service][usage=industrial] { | |
| color: #b00; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=disused][!service][!usage], | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=abandoned][!service][!usage] { | |
| color: #b00; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=disused][!service][usage=branch], | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=abandoned][!service][usage=branch] { | |
| color: #b00; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=disused][!service][usage=industrial], | |
| way[electrified=contact_line][frequency=50][voltage=25000][railway=abandoned][!service][usage=industrial] { | |
| color: #b00; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| /* Electrified DC 3kV */ | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=rail][!service][!usage] { | |
| color: #090; | |
| width: 5; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=rail][!service][usage=branch] { | |
| color: #090; | |
| width: 3; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=rail][!service][usage=industrial] { | |
| color: #090; | |
| width: 1; | |
| } | |
| /* Constructions and disused ways */ | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=construction][!service][!usage] { | |
| color: #090; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=construction][!service][usage=branch] { | |
| color: #090; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=construction][!service][usage=industrial] { | |
| color: #090; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=disused][!service][!usage], | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=abandoned][!service][!usage] { | |
| color: #090; | |
| width: 5; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=disused][!service][usage=branch], | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=abandoned][!service][usage=branch] { | |
| color: #090; | |
| width: 3; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=disused][!service][usage=industrial], | |
| way[electrified=contact_line][frequency=0][voltage=3000][railway=abandoned][!service][usage=industrial] { | |
| color: #090; | |
| width: 1; | |
| dashes: 10,20; | |
| linecap: square; | |
| } | |
| /* Stations */ | |
| node[railway=station] { | |
| text: name; | |
| text-color: black; | |
| font-weight: bold; | |
| text-decoration: underline; | |
| font-size: 14; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment