-
Notifications
You must be signed in to change notification settings - Fork 825
/
Copy pathgolf.mss
72 lines (65 loc) · 1.55 KB
/
golf.mss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@golf-color: #666;
#landcover[zoom >= 12] {
::high-zoom[zoom >= 12] {
[feature = 'golf_tee'],
[feature = 'golf_fairway'],
[feature = 'golf_rough'],
[feature = 'golf_driving_range'] {
polygon-fill: @grass;
}
}
::high-zoom[zoom >= 13] {
[feature = 'golf_green'] {
polygon-fill: @pitch;
}
[feature = 'golf_bunker'] {
polygon-fill: @sand;
}
}
::high-zoom[zoom >= 15] {
[feature = 'golf_rough'] {
polygon-pattern-file: url('symbols/golf_rough.svg');
}
}
}
#golf-line[zoom >= 16] {
[golf = 'hole'] {
line-color: @golf-color;
line-width: 0.5;
}
}
#text-line[zoom >= 16] {
[feature = 'golf_hole'][ref != ''],
[feature = 'golf_hole'][name != ''] {
text-placement: line;
text-size: 11;
text-fill: @golf-color;
text-face-name: @book-fonts;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-name: "[ref]";
[name != ''] { text-name: "[name]"; }
[zoom >= 17] { text-size: 13; }
}
}
#amenity-points[zoom >= 16] {
[feature = 'golf_hole'],
[feature = 'golf_pin'] {
marker-file: url('symbols/leisure/golf_pin.svg');
marker-fill: @golf-color;
marker-clip: false;
}
}
#text-point[zoom >= 17] {
[feature = 'golf_pin'][ref != ''] {
text-name: "[ref]";
text-size: @standard-font-size;
text-fill: @golf-color;
text-face-name: @book-fonts;
text-halo-radius: @standard-halo-radius;
text-halo-fill: @standard-halo-fill;
text-horizontal-alignment: middle;
text-dx: 1;
text-dy: 6;
}
}