-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontour
37 lines (32 loc) · 790 Bytes
/
contour
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
@contour: fadeout(#9f805d, 70%);
#contours[zoom>=10][zoom<=13] {
::tick {
line-width: 4;
line-offset: 2;
line-color: @contour;
line-dasharray: 0.7, 150;
}
::contour {
line-width: 0.5;
line-color: @contour;
[zoom<13][elev =~ ".+00"] {
line-color: fadein(@contour, 30%);
}
/* magic for better labelling rasterizes the map, removed */
/* see http://wygoda.net/blog/better-contours-tilemill */
}
::label {
[zoom >= 13],
[elev =~ ".+00"] {
text-face-name: @sans_caption;
text-name: "[elev]";
text-size: 9;
text-fill: fadein(@contour, 30%);
text-placement: line;
text-clip: false;
text-spacing: 800;
text-allow-overlap: true;
text-min-path-length: 500;
}
}
}