style/places.mss

changeset 0
b0eb3af2f9ee
child 3
89b6a7562889
equal deleted inserted replaced
-1:000000000000 0:b0eb3af2f9ee
1 @place-halo-fill: rgba(255,255,255,60%);
2 @place-halo-radius: 1.5;
3
4 @landcover-font-size: 10;
5 @landcover-wrap-width-size: 30; // 3 em
6 @landcover-line-spacing-size: -1.5; // -0.15 em
7 @landcover-font-size-big: 12;
8 @landcover-wrap-width-size-big: 36; // 3 em
9 @landcover-line-spacing-size-big: -1.8; // -0.15 em
10 @landcover-font-size-bigger: 15;
11 @landcover-wrap-width-size-bigger: 45; // 3 em
12 @landcover-line-spacing-size-bigger: -2.25; // -0.15 em
13 @landcover-face-name: @oblique-fonts;
14
15 #place-major[zoom >= 10],
16 #place-major[place='city'] {
17 text-name: "[bilingual_name]";
18 text-size: 10;
19 [zoom >= 11] { text-size: 11; }
20 [zoom >= 12] { text-size: 12; }
21 [zoom >= 13] { text-size: 13; }
22 [zoom >= 14] { text-size: 14; }
23 [zoom >= 15] { text-size: 15; }
24 text-fill: #000;
25 text-face-name: @place-font;
26 [place='city'][zoom >= 10],
27 [zoom >= 12] {
28 text-face-name: @place-font-bold;
29 }
30 [place='city'][zoom >= 12],
31 [zoom >= 13] {
32 text-transform: uppercase;
33 }
34 text-halo-radius: @place-halo-radius;
35 text-halo-fill: @place-halo-fill;
36 text-clip: false;
37 text-placement-type: simple;
38 text-placements: E,NE,SE,W,NW,SW;
39 }
40
41 #place-medium {
42 text-name: "[bilingual_name]";
43 text-size: 10;
44 [zoom >= 13] { text-size: 11; }
45 [zoom >= 14] { text-size: 12; }
46 [zoom >= 15] { text-size: 14; }
47 [zoom >= 16] { text-size: 15; }
48 [zoom >= 17] { text-size: 17; }
49 text-fill: #000;
50 text-face-name: @place-font;
51 [zoom >= 13] {
52 text-face-name: @place-font-bold;
53 }
54 text-halo-radius: @place-halo-radius;
55 text-halo-fill: @place-halo-fill;
56 text-clip: false;
57 text-placement-type: simple;
58 text-placements: E,NE,SE,W,NW,SW;
59 }
60
61 #poi-name,
62 #poi-name-medium,
63 #poi-name-minor,
64 #place-minor
65 {
66 text-name: "[bilingual_name]";
67 text-size: 10;
68 [zoom >= 15] { text-size: 11; }
69 [zoom >= 16] { text-size: 12; }
70 [zoom >= 17] { text-size: 13; }
71 [zoom >= 18] { text-size: 14; }
72 text-fill: #000;
73 text-face-name: @place-font;
74 #place-minor[natural = 0][zoom >= 17] {
75 text-face-name: @place-font-bold;
76 }
77 [natural = 1] {
78 text-face-name: @natural-font;
79 }
80 text-halo-radius: @place-halo-radius;
81 text-halo-fill: @place-halo-fill;
82 text-clip: false;
83 text-placement-type: simple;
84 text-placements: E,NE,SE,W,NW,SW;
85 }
86
87 #place-natural
88 {
89 [zoom >= 4][way_pixels > 3000],
90 [zoom >= 16],
91 [zoom >= 11][way_pixels > 3000],
92 [zoom >= 17] {
93 text-name: "[bilingual_name]";
94 text-fill: #000;
95 text-size: 10;
96 text-wrap-width: @landcover-wrap-width-size;
97 text-line-spacing: @landcover-line-spacing-size;
98 [way_pixels > 12000] {
99 text-size: @landcover-font-size-big;
100 text-wrap-width: @landcover-wrap-width-size-big;
101 text-line-spacing: @landcover-line-spacing-size-big;
102 }
103 [way_pixels > 48000] {
104 text-size: @landcover-font-size-bigger;
105 text-wrap-width: @landcover-wrap-width-size-bigger;
106 text-line-spacing: @landcover-line-spacing-size-bigger;
107 }
108 text-face-name: @natural-font;
109 text-halo-radius: @place-halo-radius;
110 text-halo-fill: @place-halo-fill;
111 }
112 }

mercurial