-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move finnish signals to another file
- Loading branch information
Showing
3 changed files
with
179 additions
and
174 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#railway_signals[zoom>=14] { | ||
|
||
/*************************/ | ||
/* FI main light signals */ | ||
/*************************/ | ||
/* new type */ | ||
["feature"="FI:Po"]["main_form"="light"] { | ||
marker-file: url('symbols/fi/po0-new.svg'); | ||
marker-width: 9; | ||
marker-height: 15; | ||
marker-allow-overlap: true; | ||
|
||
::text { | ||
text-name: [ref]; | ||
text-dy: 12; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
text-size: 10; | ||
} | ||
|
||
/* can display Po1 */ | ||
["main_states"=~"^(.*;)?FI:Po1(;.*)?$"] { | ||
marker-file: url('symbols/fi/po1-new.svg'); | ||
} | ||
|
||
/* can display Po2 */ | ||
["main_states"=~"^(.*;)?FI:Po2(;.*)?$"] { | ||
marker-file: url('symbols/fi/po2-new.svg'); | ||
} | ||
} | ||
|
||
/* old type */ | ||
["feature"="FI:Po-v"]["main_form"="light"] { | ||
marker-file: url('symbols/fi/po0-old.svg'); | ||
marker-width: 7; | ||
marker-height: 16; | ||
marker-allow-overlap: true; | ||
|
||
::text { | ||
text-name: [ref]; | ||
text-dy: 12; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
text-size: 10; | ||
} | ||
|
||
/* can display Po1 */ | ||
["main_states"=~"^(.*;)?FI:Po1(;.*)?$"] { | ||
marker-file: url('symbols/fi/po1-old.svg'); | ||
} | ||
|
||
/* can display Po2 */ | ||
["main_states"=~"^(.*;)?FI:Po2(;.*)?$"] { | ||
marker-file: url('symbols/fi/po2-old.svg'); | ||
} | ||
} | ||
|
||
/****************************/ | ||
/* FI distant light signals */ | ||
/****************************/ | ||
["feature"="FI:Eo"]["distant_form"="light"], | ||
["feature"="FI:Eo-v"]["distant_form"="light"] { | ||
["distant_repeated"!="yes"] { | ||
::text { | ||
text-name: [ref]; | ||
text-dy: 12; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
text-size: 10; | ||
} | ||
|
||
["feature"="FI:Eo"] { | ||
marker-width: 9; | ||
marker-height: 15; | ||
marker-file: url('symbols/fi/eo0-new.svg'); | ||
} | ||
|
||
["feature"="FI:Eo-v"] { | ||
marker-width: 10; | ||
marker-height: 10; | ||
marker-file: url('symbols/fi/eo0-old.svg'); | ||
} | ||
|
||
/* can display Eo 1 (expect proceed) */ | ||
/* new type */ | ||
["distant_states"=~"^(.*;)?FI:Eo1(;.*)?$"] { | ||
marker-file: url('symbols/fi/eo1-new.svg'); | ||
} | ||
/* old type */ | ||
["distant_states"=~"^(.*;)?FI:Eo1(;.*)?$"] { | ||
marker-file: url('symbols/fi/eo1-old.svg'); | ||
} | ||
|
||
/* can display Eo 2 (expect proceed) -- new type */ | ||
["distant_states"=~"^(.*;)?FI:Eo2(;.*)?$"] { | ||
marker-file: url('symbols/fi/eo2-new.svg'); | ||
} | ||
} | ||
} | ||
|
||
/************************************/ | ||
/* FI combined block signal type So */ | ||
/************************************/ | ||
["feature"="FI:So"]["combined_form"="light"]["combined_states"=~"^(.*;)?FI:Po1(;.*)?$"]["combined_states"=~"^(.*;)?FI:Eo1(;.*)?$"] { | ||
marker-file: url('symbols/fi/eo1-po1-combined-block.svg'); | ||
marker-width: 12; | ||
marker-height: 15; | ||
marker-allow-overlap: true; | ||
|
||
::text { | ||
text-name: [ref]; | ||
text-dy: 12; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
text-size: 10; | ||
} | ||
} | ||
|
||
/*******************************************/ | ||
/* FI shunting light signals type Ro (new) */ | ||
/*******************************************/ | ||
[zoom>=17]["feature"="FI:Ro"]["shunting_states"=~"^(.*;)?FI:Ro0(;.*)?$"]["shunting_form"="light"] { | ||
marker-file: url('symbols/fi/ro0-new.svg'); | ||
marker-width: 11; | ||
marker-height: 12; | ||
marker-allow-overlap: true; | ||
|
||
::text { | ||
text-name: [ref]; | ||
text-dy: 11; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
text-size: 10; | ||
} | ||
} | ||
|
||
/******************************************************/ | ||
/* FI minor light signals type Lo at moveable bridges */ | ||
/******************************************************/ | ||
[zoom>=17]["feature"="FI:Lo"]["minor_states"=~"^(.*;)?FI:Lo0(;.*)?$"]["minor_form"="light"] { | ||
marker-file: url('symbols/fi/lo0.svg'); | ||
marker-width: 7; | ||
marker-height: 12; | ||
marker-allow-overlap: true; | ||
|
||
::text { | ||
text-size: 10; | ||
text-name: [ref]; | ||
text-dy: 11; | ||
text-fill: @signal-text-fill; | ||
text-halo-radius: @signal-text-halo-radius; | ||
text-halo-fill: @signal-text-halo-fill; | ||
text-face-name: @bold-fonts; | ||
} | ||
} | ||
|
||
/**************************/ | ||
/* FI crossing signal To */ | ||
/**************************/ | ||
[zoom>=15]["feature"="FI:To"]["crossing_form"="light"] { | ||
marker-file: url('symbols/fi/to1.svg'); | ||
marker-width: 7; | ||
marker-height: 12; | ||
marker-allow-overlap: true; | ||
} | ||
} |