--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/style/places.mss Mon Sep 14 22:55:45 2020 +0300 @@ -0,0 +1,112 @@ +@place-halo-fill: rgba(255,255,255,60%); +@place-halo-radius: 1.5; + +@landcover-font-size: 10; +@landcover-wrap-width-size: 30; // 3 em +@landcover-line-spacing-size: -1.5; // -0.15 em +@landcover-font-size-big: 12; +@landcover-wrap-width-size-big: 36; // 3 em +@landcover-line-spacing-size-big: -1.8; // -0.15 em +@landcover-font-size-bigger: 15; +@landcover-wrap-width-size-bigger: 45; // 3 em +@landcover-line-spacing-size-bigger: -2.25; // -0.15 em +@landcover-face-name: @oblique-fonts; + +#place-major[zoom >= 10], +#place-major[place='city'] { + text-name: "[bilingual_name]"; + text-size: 10; + [zoom >= 11] { text-size: 11; } + [zoom >= 12] { text-size: 12; } + [zoom >= 13] { text-size: 13; } + [zoom >= 14] { text-size: 14; } + [zoom >= 15] { text-size: 15; } + text-fill: #000; + text-face-name: @place-font; + [place='city'][zoom >= 10], + [zoom >= 12] { + text-face-name: @place-font-bold; + } + [place='city'][zoom >= 12], + [zoom >= 13] { + text-transform: uppercase; + } + text-halo-radius: @place-halo-radius; + text-halo-fill: @place-halo-fill; + text-clip: false; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; +} + +#place-medium { + text-name: "[bilingual_name]"; + text-size: 10; + [zoom >= 13] { text-size: 11; } + [zoom >= 14] { text-size: 12; } + [zoom >= 15] { text-size: 14; } + [zoom >= 16] { text-size: 15; } + [zoom >= 17] { text-size: 17; } + text-fill: #000; + text-face-name: @place-font; + [zoom >= 13] { + text-face-name: @place-font-bold; + } + text-halo-radius: @place-halo-radius; + text-halo-fill: @place-halo-fill; + text-clip: false; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; +} + +#poi-name, +#poi-name-medium, +#poi-name-minor, +#place-minor +{ + text-name: "[bilingual_name]"; + text-size: 10; + [zoom >= 15] { text-size: 11; } + [zoom >= 16] { text-size: 12; } + [zoom >= 17] { text-size: 13; } + [zoom >= 18] { text-size: 14; } + text-fill: #000; + text-face-name: @place-font; + #place-minor[natural = 0][zoom >= 17] { + text-face-name: @place-font-bold; + } + [natural = 1] { + text-face-name: @natural-font; + } + text-halo-radius: @place-halo-radius; + text-halo-fill: @place-halo-fill; + text-clip: false; + text-placement-type: simple; + text-placements: E,NE,SE,W,NW,SW; +} + +#place-natural +{ + [zoom >= 4][way_pixels > 3000], + [zoom >= 16], + [zoom >= 11][way_pixels > 3000], + [zoom >= 17] { + text-name: "[bilingual_name]"; + text-fill: #000; + text-size: 10; + text-wrap-width: @landcover-wrap-width-size; + text-line-spacing: @landcover-line-spacing-size; + [way_pixels > 12000] { + text-size: @landcover-font-size-big; + text-wrap-width: @landcover-wrap-width-size-big; + text-line-spacing: @landcover-line-spacing-size-big; + } + [way_pixels > 48000] { + text-size: @landcover-font-size-bigger; + text-wrap-width: @landcover-wrap-width-size-bigger; + text-line-spacing: @landcover-line-spacing-size-bigger; + } + text-face-name: @natural-font; + text-halo-radius: @place-halo-radius; + text-halo-fill: @place-halo-fill; + } +}