forked from cquest/osmfr-cartocss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.mss
More file actions
136 lines (115 loc) · 4.15 KB
/
Copy pathstyle.mss
File metadata and controls
136 lines (115 loc) · 4.15 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
Map {
background-color: @water-color;
buffer-size: 128;
}
@book-fonts: "DejaVu Sans Book", "unifont Medium";
@bold-fonts: "DejaVu Sans Bold", "unifont Medium";
@oblique-fonts: "DejaVu Sans Oblique", "unifont Medium";
@water-color: #b5d0d0;
@land-color: #f2efe9;
@trunk_color: #9de09d; // #a9dba9
@primary_color: #ec989a;
@motorway_color: #809bc0;
@shield_spacing: 750;
@casing_large_z12: 3;
@casing_large_z13: 4.5;
@casing_large_z14: 6;
@casing_large_z15: 8;
@casing_large_z16: 10;
@casing_large_z17: 12.5;
@casing_large_z18: 16;
@casing_large_z19: 32;
@casing_medium_z12: 1.5;
@casing_medium_z13: 2.5;
@casing_medium_z14: 4.5;
@casing_medium_z15: 6;
@casing_medium_z16: 8;
@casing_medium_z17: 10;
@casing_medium_z18: 14;
@casing_medium_z19: 28;
@casing_small_z12: 0;
@casing_small_z13: 0;
@casing_small_z14: 2.5;
@casing_small_z15: 4.5;
@casing_small_z16: 6;
@casing_small_z17: 8;
@casing_small_z18: 12;
@casing_small_z19: 16;
@fill_large_z12: @casing_large_z12 - 0.5;
@fill_large_z13: @casing_large_z13 - 0.5;
@fill_large_z14: @casing_large_z14 - 1;
@fill_large_z15: @casing_large_z15 - 1.25;
@fill_large_z16: @casing_large_z16 - 1.5;
@fill_large_z17: @casing_large_z17 - 1.75;
@fill_large_z18: @casing_large_z18 - 2;
@fill_large_z19: @casing_large_z19 - 2;
@fill_medium_z12: @casing_medium_z12 - 0.5;
@fill_medium_z13: @casing_medium_z13 - 0.5;
@fill_medium_z14: @casing_medium_z14 - 0.75;
@fill_medium_z15: @casing_medium_z15 - 1;
@fill_medium_z16: @casing_medium_z16 - 1.25;
@fill_medium_z17: @casing_medium_z17 - 1.5;
@fill_medium_z18: @casing_medium_z18 - 1.75;
@fill_medium_z19: @casing_medium_z19 - 2;
@fill_small_z12: 0;
@fill_small_z13: 0;
@fill_small_z14: @casing_small_z14 - 0.5;
@fill_small_z15: @casing_small_z15 - 0.5;
@fill_small_z16: @casing_small_z16 - 0.75;
@fill_small_z17: @casing_small_z17 - 1;
@fill_small_z18: @casing_small_z18 - 1.25;
@fill_small_z19: @casing_small_z19 - 1.5;
@couleur-voie: #f84; // orange
@couleur-piste: #080; // vert
@couleur-interdit: #f00; // rouge
@couleur-autorise: #08f; // bleu clair
@route: #f4f; // rose
#cycleway [zoom>=13] {
// double-sens cyclable (orange)
[cycleway='opposite'] { line-width: 2; line-color:@couleur-voie; line-opacity: 0.7; }
// voies cyclables (orange)
[cycleway='lane'] { line-width: 2; line-color: @couleur-voie; line-opacity: 0.7; }
[cycleway_l='lane'] { line-width: 2; line-color: @couleur-voie; line-opacity: 0.7; }
[cycleway_r='lane'] { line-width: 2; line-color: @couleur-voie; line-opacity: 0.7; }
[bicycle_lanes='yes'] { line-width: 2; line-color: @couleur-voie; line-opacity: 0.7; }
[bicycle_lanes='designated'] { line-width: 2; line-color: @couleur-voie; line-opacity: 0.7; }
[bicycle='designated'] { line-width: 1; line-color: @couleur-voie; line-opacity: 0.7; }
// partagé avec les bus (orange épais)
[cycleway='share_busway'] { line-width: 4; line-color: @couleur-voie; line-opacity: 0.7; }
[cycleway_l='share_busway'] { line-width: 4; line-color: @couleur-voie; line-opacity: 0.7; }
[cycleway_r='share_busway'] { line-width: 4; line-color: @couleur-voie; line-opacity: 0.7; }
// pistes (vert épais)
[cycleway='track'] { line-width: 4; line-color:@couleur-piste; line-opacity: 0.7; }
[cycleway_l='track'] { line-width: 4; line-color:@couleur-piste; line-opacity: 0.7; }
[cycleway_r='track'] { line-width: 4; line-color:@couleur-piste; line-opacity: 0.7; }
[highway='cycleway'] { line-width: 4; line-color:@couleur-piste; line-opacity: 0.7; }
// inconnu
[highway='footway'] { line-dasharray: 8,6; }
[highway='path'] { line-dasharray: 8,6; }
// interdit vélo (rouge)
[bicycle='no'] {
line-width: 4;
line-color: @couleur-interdit;
line-opacity: 0.7;
}
// autorisé vélo (bleu)
[bicycle='yes'] {
line-width: 4;
line-color: @couleur-autorise;
line-opacity: 0.7;
}
[bicycle='designated'] {
line-width: 4;
}
[route='bicycle'] {
line-color: @route;
line-width: 6;
line-opacity: 0.5;
line-dasharray: 6,12;
}
line-width:4;
line-color:#666;
line-opacity: 0.5;
line-join: round;
line-cap: round;
}