source: subversion/applications/rendering/parking/osray/style.mapcss @ 22386

Last change on this file since 22386 was 22327, checked in by kdrangmeister, 9 years ago

mapcss

File size: 10.7 KB
Line 
1/* This is the default mapcss style */
2canvas { fill-color: #f8f8f8; fill-opacity: 1.0; }
3
4/* Default font for all elements*/
5way,node {
6         font-family: DejaVu;
7         font-color: black;
8         text-halo-color: white;
9         text-halo-radius: 2;
10}
11
12/* Render all ways only in z17-19 (mostly for debugging) */
13way|z17-19 { color:black; width:2 }
14
15/*Render all closed ways somehow but default (if not highway)*/
16way:closed [!highway] {
17           z-index: -0.9; color: black; fill-color: lightgray; width: 0}
18way:closed [landuse], way:closed [leisure]
19           {z-index: -0.9; fill-color: burlywood; fill-opacity: 1.0; width: 0.4;}
20way|z13- [landuse=recreation_ground],
21way|z13- [landuse=allotments]
22         {fill-color: #bde3cb; bezier:yes; }
23way|z12-:closed [leisure=~park|garden|golf_course|common|green]
24 {fill-color: #c7f1a3; color: #6fc18e; width: 0.6; }
25way|z12-13[landuse=cemetery] {fill-color: #c7f1a3; color: #000 }
26way|z14-  [landuse=cemetery] {fill-image: icons/cemetary.png; color: #000; }
27way|z12-  [landuse=~/field|farm|farmland|meadow|grass|vineyard/]
28              {width: 0.6; fill-color: #ebfff2; color: #9ee673;}
29way [landuse=forest] {fill-color: #6fc18e; color: #6fc18e;}
30way [landuse=residential] {fill-color: #e4e4e4; width: 0;}
31way [landuse=commercial] {fill-color: #ffffc0; color: #e4e4e4;}
32way [landuse=industrial] {fill-color: #ecd8ff; color: #e4e4e4;}
33
34/* Buildings */
35way :closed [building]::area {
36    z-index: -0.1;
37    fill-color: #F3D6B6;
38    color: #6a5a8e;
39    fill-opacity: 1.0;
40    width: 0.2;}
41
42way [natural]  { z-index: -0.5; fill-opacity: 1.0; text-position: center;}
43way [natural=water]::area  { z-index: -0.1;  fill-color: #b5d6f1; color: #b0b0b0; width: 0.3; font-size: 10; text-color: darkblue;}
44way [natural=water]::label  { z-index: 5; fill-opacity: 0; width: 0; casing-width:0; font-size: 10; text-color: darkblue; text: name;}
45way [natural=wetland] { z-index: -0.5; fill-color: #946e50; color: #3f1f06; width: 0.2;}
46
47/* Highways */
48way [highway]::centerline {
49    z-index: 0;
50    color:black;
51    linejoin: round;
52    linecap: round;
53    casing-width: 0.5;}
54way [highway]::label {
55    width: 0;
56    fill-opacity: 0;
57    z-index: 5;
58    text-color: #000000;
59    font-size: 7;
60    text-halo-radius: 1;
61    text-position: line;}
62
63/* Highway colors */
64way [highway=motorway]::centerline {
65    z-index: 0.5; color: #809BC0; casing-color: #202020}
66way [highway=motorway_link]::centerline {
67    z-index: 0; color: #809BC0; casing-color: #202020}
68way [highway=trunk]::centerline {
69    z-index: 0.5; color: #7fc97f; casing-color: #202020;}
70way [highway=primary]::centerline {
71    z-index: 0.4;
72    color: #e46d71; casing-color: #202020;}
73way [highway=primary_link]::centerline {
74    z-index: 0;color: #e46d71; casing-color: #202020;}
75way [highway=secondary]::centerline {
76    z-index:0.3; color: #FDBF6F; casing-color: #202020;}
77way [highway=tertiary]::centerline {
78    z-index: 0.2; color: #ffff90; casing-color: #202020;}
79/* in low zoom, draw unclassified, residential just as gray lines*/
80way|z-13 [highway=unclassified]::centerline,
81way|z-13 [highway=residential]::centerline { color: #909090; casing-color: #e6e6e6;}
82way|z14- [highway=unclassified]::centerline,
83way|z14- [highway=residential]::centerline {
84    z-index: 0.1; color: #FFF; casing-color: #909090;}
85way|z12- [highway=track]::centerline {
86    z-index: 0.0; color: #d79331; casing-color: #fff2de; dashes: 3,3;}
87way|z13- [highway=service]::centerline {
88    z-index: 0; color: #e6e6e6; casing-color: #909090;}
89way|z15- [highway=cycleway]::centerline {
90    z-index: 0.5; color: #d1fad1; casing-color: #707070; casing-dashes: 1,2;}
91way|z15- [highway=footway]::centerline {
92    color: #e5e0c2; casing-color: #707070;}
93way|z15- [highway=steps]::centerline {
94    color: #e5e0c2; casing-color: #707070;}
95/*TODO: need to adapt path color and casing */
96way|z15- [highway=path]::centerline {
97    color: #e5e0c2; casing-color: #707070;}
98
99/* highways default width*/
100way [highway=motorway]      {width:4.5; }
101way [highway=motorway_link] {width:3.5}
102way [highway=trunk]         {width: 5.5;}
103way [highway=primary]       {width: 4.5;}
104way [highway=primary_link]  {width: 2;}
105way [highway=secondary]     {width: 2.5}
106way [highway=tertiary]      {width: 2;}
107way [highway=unclassified]  {width: 1; casing-width: 0; }
108way [highway=residential]   {width: 1; casing-width: 0; }
109way|z12- [highway=track]    {width:0.4; casing-width: 0.01; dashes: 3,3;}
110way|z13- [highway=service]  {width:4;}
111way|z15- [highway=cycleway] {width:1; casing-width: 0.6;}
112way|z15- [highway=footway]  {width:1; casing-width: 0.6;}
113way|z15- [highway=steps]    {width: 2; casing-width: 0.01; dashes: 3,3;}
114way|z15- [highway=path]     {width:1; casing-width: 0.6;  dashes: 4,4;}
115
116
117/* highways z13*/
118way|z13 [highway=motorway],
119way|z13 [highway=trunk]
120        {width: 6.5;}
121way|z13 [highway=motorway_link] {width: 5;}
122way|z13 [highway=primary] {width: 6;}
123way|z13 [highway=primary_link] {width: 3;}
124way|z13 [highway=secondary] {width: 4.5;}
125way|z13 [highway=tertiary] {width: 3;}
126way|z13 [highway=unclassified] {width: 2; casing-width: 1; }
127way|z13 [highway=residential] {width: 2; casing-width: 0 }
128
129/* highways z14*/
130way|z14 [highway=motorway],
131way|z14 [highway=trunk] {width: 7.5;}
132way|z14 [highway=motorway_link] {width: 4;}
133way|z14 [highway=primary] {width: 7; casing-width:1;}
134way|z14 [highway=primary_link] {width: 3;}
135way|z14 [highway=secondary] {width: 6;}
136way|z14 [highway=tertiary] {width: 4.5;}
137way|z14 [highway=unclassified] {width: 3; casing-width: 1; }
138way|z14 [highway=residential] {width: 1.8;}
139way|z14- [highway=track] {width:0.5; casing-width: 0.5; dashes: 3,3;}
140
141/* highways z15*/
142way|z15 [highway=motorway],
143way|z15 [highway=trunk] {width: 16;}
144way|z15 [highway=primary] {width: 14; casing-width:1}
145way|z15 [highway=primary_link] {width: 4;}
146way|z15 [highway=secondary] {width: 13;}
147way|z15 [highway=tertiary] {width: 8;}
148way|z15 [highway=unclassified] {width: 6; casing-width: 1; }
149way|z15 [highway=residential] {width: 6;}
150way|z15 [highway=track] {width:2.5;}
151
152/* highways z16*/
153way|z16- [highway=motorway],
154way|z16- [highway=trunk] {width: 15;}
155way|z16- [highway=primary] {width: 12; casing-width:1}
156way|z16- [highway=primary_link] {width: 4;}
157way|z16- [highway=secondary] {width: 14;}
158way|z16- [highway=tertiary] {width: 8;}
159way|z16- [highway=unclassified] {width: 5; casing-width: 1; }
160way|z16- [highway=residential] {width: 5;}
161way|z16- [highway=track] {width: 3.5;}
162way|z16- [highway=service] {width: 3;}
163way|z16- [highway=cycleway] {width: 2.5;}
164way|z16- [highway=footway] {width:2.5;}
165
166/* Highway bridges */
167way|z13- [bridge=1][highway]::centerline {
168    z-index2: eval('tag(z-index) + 1');
169    dashes: 3,3;
170    XXXcasing-color: #303030;
171    casing-width: 2.5;
172    casing-linecap: square;
173    }
174
175/* Highway tunnels */
176way [tunnel=1][highway]::centerline { dashes: 10,10; opacity:0.6; casing-opacity: 0.6;}
177
178/* Waterways */
179way [waterway] {z-index: -0.2; color: #b5d6f1; casing-color: #b0b0b0; linecap: round;}
180way|z-13 [waterway=river] {width: 4; casing-width: 1;}
181way|z14- [waterway=river] {width: 6; casing-width: 1;}
182way [waterway=canal] {width: 5;}
183way|z13  [waterway=stream] {width: 2; opacity: 0.4;}
184way|z14- [waterway=stream] {width: 2; opacity: 1.0;}
185
186/* Railways */
187way [railway] {
188    z-index:0;
189    color: #FFF;
190    width: 2;
191    casing-color: #000;
192    casing-width: 0.25;
193    dashes: 7,7; }
194way [tunnel=1][railway] {color: #000; opacity:0.6; casing-opacity: 0.5;}
195way|z14- [railway] {width: 3;}
196
197node|z12-13 [railway=station]::label {
198     z-index: 10;
199     width: 5;
200     casing-width: 0.5;
201     color: #EE0000;
202     casing-color: #000;
203}
204node|z14- [railway=station]::label {
205     z-index: 10;
206     width: 6;
207     casing-width: 1;
208     color: #EE0000;
209     casing-color: #000;
210     font-size: 9;
211     font-weight: 700;
212     text-color: #FFF;
213     text-halo-color: #000;
214     text-halo-radius: 2;
215     text-offset: 10;
216     text: name;
217}
218
219/* Aeroways and Airways */
220way [aeroway] {color:gray; width: 0.5; casing-width: 0; casing-color: black;}
221way :closed [aeroway] {
222    z-index: 0.1;
223    text-color: #000;
224    fill-opacity: 0.2;
225    font-size: 5;
226    text-halo-radius: 1;
227    text: name;}
228way[aeroway=runway] {z-index:0.1; width: 2; casing-width: 0.2;}
229way[aeroway=taxiway] {z-index:0.1; width: 1; casing-width: 0.1;}
230
231/* Powerlines */
232way|z16- [power=line] {width:0.6; opacity: 1.0; color: #090909;}
233node|z16- [power=tower] {z-index: 0.2; width:0; icon-image: icons/power-tower.png;}
234
235/* Amenities */
236/*node|z12- [highway=bus_stop] {z-index:1; color: darkgray; width:1;}*/
237node|z15- [highway=bus_stop]::label {max-width: 100;}
238node|z15- [highway=bus_stop]::icon {z-index:6; icon-image: icons/bus.png;}
239
240node|z16- [amenity=fountain] {z-index:1; color: #b5d6f1; width:5; casing-color: black; casing-width: 1;}
241node|z16- [amenity=fountain] {z-index:2; width:2; color: black; casing-width: 0;}
242
243/* Street names */
244way|z12-13 [highway=primary]::label, way|z12-13 [highway=secondary]::label,
245way|z13-14 [highway=tertiary]::label, way|z13- [highway=unclassified]::label {
246         font-size: 7; text: name; }
247way|z14- [highway=primary]::label, way|z14- [highway=secondary]::label {
248         font-size: 9;
249         text-halo-radius: 1.5;
250         text: name;
251         }
252way|z15- [highway=tertiary]::label, way|z15- [highway=unclassified]::label,
253way|z15- [highway=residential]::label {
254         font-size: 9; text: name;}
255
256/* Place names */
257node [place] {
258     z-index:10;
259     color:blue;
260     width:0;
261     text-color: #000000;
262     text-halo-radius: 2
263     }
264node [place=city] {
265     font-size: 10;
266     text: name;
267     font-weight: 700;
268     text-transform: uppercase;
269     text-decoration: underline;
270     }
271node [place=town] {
272     font-size: 10;
273     text: name;
274     font-weight: 700;
275     text-transform: uppercase;
276     }
277node|z13- [place=village] {
278     width: 0;
279     font-size: 9;
280     text: name;
281     font-weight: 400;
282     }
283node|z13- [place=suburb] {
284     font-size: 9;
285     text: name;
286     font-weight: 200;
287     text-halo-radius: 0;
288     }
289
290/* Amenities */     
291node [amenity]::label, way [amenity]::label {
292     z-index:5;
293     color:blue;
294     width:0;
295     font-size: 10;
296     text-color: #000000;
297     text-halo-radius: 2;
298     fill-opacity: 0;
299     }
300
301node|z15- [amenity=pharmacy]::label, way|z15- [amenity=pharmacy]::label {     
302     width: 0;
303     font-family: sans;
304     icon-image: icons/pharmacy.png;
305     font-size: 9;
306     font-variant: small-caps;
307     text-offset: 14;
308     text-halo-radius: 2;
309     text-halo-color: #666;
310     text-color: #32CD32;
311     max-width: 200;
312     text: name;
313     }
Note: See TracBrowser for help on using the repository browser.