--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/style/amenity.mss Mon Sep 14 22:55:45 2020 +0300 @@ -0,0 +1,138 @@ +@standard-font-size: 10; +@standard-wrap-width: 30; // 3 em +@standard-line-spacing-size: -1.5; // -0.15 em +@standard-font: @regular-font; +@traffic-blue: #005eb8; +@railway-name-color: #644d70; +@aerodrome-name-color: #463d70; + +#stations[zoom >= 15] +{ + [feature = 'railway_station'], + [feature = 'railway_halt'] + { + marker-file: url('symbols/train-station.svg'); + } + [feature = 'amenity_bus_station'] + { + marker-file: url('symbols/bus-station.svg'); + } + [feature = 'aeroway_aerodrome'] + { + marker-file: url('symbols/aerodrome.svg'); + } + marker-clip: false; + text-name: "[bilingual_name]"; + text-size: @standard-font-size; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-fill: @traffic-blue; + text-dy: 11; + text-face-name: @bold-font; + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; +} + +#train-stations +{ + [zoom >= 12] + { + text-name: "[ref]"; + [zoom >= 14] + { + text-name: "[bilingual_name]"; + } + text-size: 10; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-fill: white; + text-clip: true; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; + [zoom >= 16] { text-size: 11; } + [zoom >= 17] { text-size: 12; } + [zoom >= 18] { text-size: 13; } + text-face-name: "FreeSans Bold"; + text-halo-radius: 1.5 * @standard-halo-radius; + text-halo-fill: blue; + /* + [zoom >= 16] + { + text-transform: uppercase; + } + */ + } +} + +#train-sites +{ + [zoom >= 15] + { + text-name: "[ref]"; + [zoom >= 16] + { + text-name: "[bilingual_name]"; + } + text-size: @standard-font-size; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-fill: @railway-name-color; + text-clip: false; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; + [zoom >= 16] { text-size: 11; } + [zoom >= 17] { text-size: 12; } + [zoom >= 18] { text-size: 13; } + text-face-name: "FreeSans Bold"; + text-halo-radius: 0.75 * @standard-halo-radius; + text-halo-fill: @standard-halo-fill; + } +} + +#train-milestones +{ + [zoom >= 16] + { + text-name: "[position]"; + text-size: @standard-font-size; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-fill: @railway-name-color; + text-clip: false; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; + [zoom >= 17] { text-size: 11; } + [zoom >= 18] { text-size: 12; } + [zoom >= 19] { text-size: 13; } + text-face-name: "FreeSans Bold"; + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; + } +} + +@aerodrome-color: #dedced; +#aerodrome +{ + polygon-fill: @aerodrome-color; + [zoom >= 17] + { + line-color: saturate(darken(@aerodrome-color, 20%), 20%); + } +} + +#aerodrome-name +{ + text-name: "[ref]"; + [zoom >= 12] + { + text-name: "[bilingual_name]"; + } + text-size: @standard-font-size; + text-wrap-width: @standard-wrap-width; + text-line-spacing: @standard-line-spacing-size; + text-clip: false; + text-fill: @aerodrome-name-color; + text-face-name: @bold-font; + text-halo-radius: @standard-halo-radius; + text-halo-fill: @standard-halo-fill; +}