]> mj.ucw.cz Git - leo.git/blob - poskole.css
Support for reading of shape files (partial)
[leo.git] / poskole.css
1 /*** General settings ***/
2
3 way::* {
4         linejoin: round;
5         linecap: round;
6         casing-linejoin: round;
7         casing-linecap: round;
8 }
9
10 /*
11  * Assignment of z-indices:
12  *
13  *      0       default
14  *      0.1     subtypes of landuse
15  *      1.x     highways
16  *      2.x     railways
17  *      4       tourist routes
18  *      5       icons
19  *      9       hack:front
20  *      10      power lines and similar overhead objects
21  *
22  * Assignment of major-z-indices:
23  *
24  *      1       (default for areas}
25  *      1.1     water way casing
26  *      1.2     water ways
27  *      1.3     water areas
28  *      2       (default for casing)
29  *      2.9     (default for line patterns)
30  *      3       (default for lines)
31  *      4       (default for points)
32  *      4.9     (default for line text)
33  *      5       (default for point text)
34  */
35
36 /*** Landuse ***/
37
38 /*
39 area[landuse], area[leisure] {
40         fill-color: #f00;
41 }
42 */
43
44 area[leisure=swimming_pool][access!=private] {
45         fill-color: #b5d0d0;
46         color: #00f;
47         width: 0.5;
48 }
49
50 area[leisure=playground] {
51         fill-color: #ccfff1;
52         color: #666;
53         width: 0.3;
54 }
55
56 area[leisure=attraction] {
57         fill-color: #f2caea;
58         // width: 0.3;
59 }
60
61 area[landuse=cemetery], area[landuse=grave_yard], area[amenity=grave_yard] {
62         fill-color: #aacbaf;
63         fill-pattern: "icons/cemetery.svg";
64         fill-pattern-width: 2;
65         // FIXME: Switch patterns according to religion=* ?
66 }
67
68 /*
69 area[landuse=residential] {
70         fill-color: #ddd;
71 }
72 */
73
74 area[landuse=meadow],
75 area[landuse=grass],
76 area[leisure=common],
77 area[leisure=garden],
78 area[landuse=recreation_ground],
79 area[landuse=orchard],
80 area[landuse=plant_nursery],
81 area[landuse=village_green] {
82         fill-color: #cfeca8;
83 }
84
85 area[natural=scrub],
86 area[leisure=golf_course] {
87         fill-color: #b5e3b5;
88         z-index: 0.1;
89 }
90
91 area[leisure=park],
92 area[leisure=recreation_ground] {
93         fill-color: #b6fdb6;
94         z-index: 0.1;
95 }
96
97 area[landuse=forest] {
98         fill-color: #8dc56c;
99         // FIXME: Pattern fill
100 }
101
102 area[landuse=allotments] {
103         fill-color: #e5c7ab;
104         // FIXME: Pattern fill
105 }
106
107 area[landuse=retail] {
108         fill-color: #f1dada;
109         color: #f00;
110         width: 0.3;
111 }
112
113 area[landuse=industrial],
114 area[landuse=railway] {
115         fill-color: #dfd1d6;
116 }
117
118 area[landuse=farm],
119 area[landuse=farmland] {
120         fill-color: #ead8bd;
121 }
122
123 area[landuse=brownfield],
124 area[landuse=landfill],
125 area[landuse=greenfield],
126 area[landuse=construction] {
127         fill-color: #9d9d6c;
128 }
129
130 area[landuse=military] {
131         fill-color: #65841b;
132         color: #f55;
133         width: 0.3;
134         // FIXME: Pattern
135 }
136
137 area[landuse=parking] {
138         fill-color: #f7efb7;
139         color: #eeeed1;
140         width: 0.3;
141 }
142
143 area[aeroway=apron] {
144         fill-color: #e9d1ff;
145 }
146
147 area[aeroway=aerodrome] {
148         fill-color: #ccc;
149         fill-opacity: 0.2;
150         color: #666;
151         width: 0.2;
152 }
153
154 area[landuse=commercial],
155 area[highway=services],
156 area[highway=rest_area] {
157         fill-color: #efc8c8;
158 }
159
160 area[landuse=garages] {
161         fill-color: #996;
162         fill-opacity: 0.2;
163 }
164
165 /*
166 area[leisure=nature_reserve] {
167         fill-color: #6c3;
168         color: #6c3;
169         width: 0.3;
170         // FIXME: Pattern?
171 }
172 */
173
174 area[leisure=pitch] {
175         fill-color: #8ad3af;
176         color: #888;
177         width: 0.3;
178         z-index: 0.1;
179 }
180
181 area[leisure=track] {
182         fill-color: #74dcba;
183         color: #888;
184         width: 0.3;
185         z-index: 0.1;
186 }
187
188 way[barrier] {
189         color: #666;
190         width: 0.2;
191 }
192
193 /*** Water ***/
194
195 /*
196 way[waterway] {
197         color: #f00;
198 }
199 */
200
201 area[landuse=basin],
202 area[landuse=reservoir],
203 area[landuse=water],
204 area[natural=bay],
205 area[natural=lake],
206 area[natural=water],
207 area[waterway=riverbank] {
208         fill-color: #b5d0d0;
209         major-z-index: 1.3;     // Above normal areas and waterways
210         text: name;
211         text-halo-radius: 0.5;
212         text-color: #3030a5;
213         text-halo-color: #ffffff;
214         text-halo-opacity: 0.8;
215         text-position: center;
216         font-family: Times;
217         font-size: 2.5;
218         font-style: italic;
219 }
220
221 area[natural=marsh],
222 area[natural=wetland] {
223         fill-pattern: "icons/wetland.svg";
224         fill-pattern-width: 2;
225         fill-pattern-height: 1.5;
226         major-z-index: 1.3;
227 }
228
229 way[waterway=stream],
230 way[waterway=ditch],
231 way[waterway=drain] {
232         color: #b5d0d0;
233         width: 0.3;
234         casing-width: 0.2;
235         casing-color: #fff;
236         major-z-index: 1.2;     // Above normal areas, below water areas
237         casing-major-z-index: 1.1;
238         casing-opacity: 0.5;
239 }
240
241 way[waterway=river] {
242         color: #b5d0d0;
243         width: 0.6;
244         casing-color: #fff;
245         casing-width: 1;
246         major-z-index: 1.2;     // Above normal areas, below water areas
247         casing-major-z-index: 1.1;
248         casing-opacity: 0.5;
249 }
250
251 // FIXME: waterway=river && tunnel=yes
252
253 /*** Power lines ***/
254
255 way[power=line] {
256         color: #777;
257         width: 0.3;
258         z-index: 10;
259 }
260
261 way[power=minor_line] {
262         color: #777;
263         width: 0.15;
264         z-index: 10;
265 }
266
267 node[power=tower],
268 node[power=pole] {
269         symbol-shape: circle;   // FIXME
270         symbol-size: 0.7;
271         symbol-stroke-color: #777;
272         symbol-stroke-width: 0.3;
273         z-index: 10;
274 }
275
276 /*** Highways ***/
277
278 /*
279 way[highway][area?!] {
280         color: #f00;
281         width: 0.3;
282 }
283 */
284
285 area[highway=residential],
286 area[highway=unclassified],
287 area[highway=service] {
288         fill-color: #fff;
289 }
290
291 area[highway=pedestrian],
292 area[highway=footway],
293 area[highway=path] {
294         fill-color: #ededed;
295 }
296
297 area[highway=track] {
298         fill-color: #dfcc66;
299 }
300
301 area[highway=platform],
302 area[railway=platform] {
303         fill-color: #bbbbbb;
304 }
305
306 area[aeroway=runway],
307 area[aeroway=taxiway],
308 area[aeroway=helipad] {
309         fill-color: #bbc;
310         z-index: 1;
311 }
312
313 way[highway=motorway_link] {
314         color: #809bc0;
315         width: 5;
316         casing-color: #506077;
317         casing-width: 1;
318         z-index: 1.9;
319 }
320
321 way[highway=trunk_link] {
322         color: #a9dba9;
323         width: 2.5;
324         casing-color: #477147;
325         casing-width: 0.8;
326         z-index: 1.8;
327 }
328
329 way[highway=primary_link] {
330         color: #ec989a;
331         width: 1.5;
332         casing-color: #8d4346;
333         casing-width: 0.5;
334         z-index: 1.7;
335 }
336
337 way[highway=secondary_link] {
338         color: #fed7a5;
339         width: 1;
340         casing-color: #a37b48;
341         casing-width: 0.5;
342         z-index: 1.6;
343 }
344
345 way[highway=tertiary_link] {
346         color: #ffffb3;
347         width: 0.7;
348         casing-color: #bbb;
349         casing-width: 0.5;
350         z-index: 1.5;
351 }
352
353 way[highway=motorway] {
354         color: #809bc0;
355         width: 5;
356         casing-color: #506077;
357         casing-width: 1;
358         z-index: 1.9;
359 }
360
361 way[highway=trunk] {
362         color: #a9dba9;
363         width: 2.5;
364         casing-color: #477147;
365         casing-width: 0.8;
366         z-index: 1.8;
367 }
368
369 way[highway=primary] {
370         color: #ec989a;
371         width: 1.5;
372         casing-color: #8d4346;
373         casing-width: 0.5;
374         z-index: 1.7;
375 }
376
377 way[highway=secondary] {
378         color: #fed7a5;
379         width: 1;
380         casing-color: #a37b48;
381         casing-width: 0.5;
382         z-index: 1.6;
383 }
384
385 way[highway=tertiary] {
386         color: #ffffb3;
387         width: 0.7;
388         casing-color: #bbb;
389         casing-width: 0.5;
390         z-index: 1.5;
391 }
392
393 way[highway=road] {
394         color: #ddd;
395         width: 0.7;
396         casing-color: #999;
397         casing-width: 0.5;
398         z-index: 1;
399 }
400
401 way[highway=residential],
402 way[highway=unclassified],
403 way[highway=road],
404 way[highway=living_street] {
405         color: #fff;
406         width: 0.7;
407         casing-color: #999;
408         casing-width: 0.5;
409         z-index: 1;
410 }
411
412 way[highway=service] {
413         color: #fff;
414         width: 0.5;
415         casing-color: #999;
416         casing-width: 0.3;
417         z-index: 1;
418 }
419
420 way[highway=pedestrian] {
421         color: #ededed;
422         width: 0.3;
423         casing-color: #808080;
424         casing-width: 0.3;
425 }
426
427 // In this scale, steps cannot be displayed nicely
428 /*
429 way[highway=steps] {
430         color: #fa8072;
431         width: 0.8;
432         dashes: 0.2, 0.2;
433 }
434 */
435
436 way[highway=footway],
437 way[highway=path][foot=designated] {
438 //      color: #888;
439         color: #996600;
440         width: 0.3;
441         casing-color: #fff;
442         casing-width: 0.1;
443         casing-opacity: 0.5;
444 }
445
446 way[highway=track],
447 way[highway=path],
448 way[highway=bridleway] {
449         color: #996600;
450         width: 0.3;
451         dashes: 5, 3;
452         casing-color: #fff;
453         casing-width: 0.1;
454         casing-opacity: 0.5;
455 }
456
457 way[highway=cycleway],
458 way[highway=path][bicycle=designated] {
459 /*
460         color: #5e5eff;
461         width: 0.3;
462         dashes: 5, 3;
463 */
464 //      color: #888;
465         color: #996600;
466         width: 0.3;
467         casing-color: #fff;
468         casing-width: 0.1;
469         casing-opacity: 0.5;
470 }
471
472 way[highway=proposed] {
473         width: 0;
474 }
475
476 way[aeroway=runway],
477 way[aeroway=taxiway] {
478         color: #bbc;
479         width: 0.3;
480 }
481
482 /*** Railway ***/
483
484 /*
485 way[railway][area?!] {
486         color: #f0f;
487         width: 0.3;
488 }
489 */
490
491 way[railway=rail] {
492         color: #999;
493         width: 0.6;
494         casing-color: #444;
495         casing-width: 0.2;
496         z-index: 2.5;
497 }
498
499 way[railway=rail]::rwint {
500         color: #fff;
501         width: 0.5;
502         dashes: 9, 9;
503         z-index: 2.6;
504 }
505
506 way[railway=rail][service=spur],
507 way[railway=rail][service=yard] {
508         width: 0.3;
509         z-index: 2;
510 }
511
512 way[railway=rail][service=spur]::rwint,
513 way[railway=rail][service=yard]::rwint {
514         width: 0.2;
515         z-index: 2.1;
516 }
517
518 /*** Buildings ***/
519
520 area[building] {
521         fill-color: #bca9a9;
522         color: #330066;
523         width: 0.1;
524 }
525
526 /*** Tourist routes ***/
527
528 relation[type=route][route=foot][kct_yellow] way::routes {
529         color: #ee3;
530         width: 0.5;
531         z-index: 4;
532 }
533
534 relation[type=route][route=foot][kct_red] way::routes {
535         color: #e33;
536         width: 0.5;
537         z-index: 4;
538 }
539
540 way[highway=footway]::routes,
541 way[highway=path]::routes,
542 way[highway=cycleway]::routes,
543 way[highway=bridleway]::routes,
544 way[highway=track]::routes {
545         opacity: 0.7;
546 }
547
548 /*** Icons ***/
549
550 node[tourism=viewpoint] {
551         icon-image: "icons/view_point.svg";
552         icon-width: 4;
553         z-index: 5;
554 }
555
556 node[historic=wayside_cross][religion=christian],
557 node[amenity=place_of_worship][religion=christian],
558 node[amenity=crucifix],
559 area[amenity=place_of_worship][religion=christian] {
560         icon-image: "icons/cross.svg";
561         icon-width: 1.5;
562         z-index: 5;
563 }
564
565 area[building=church][amenity=place_of_worship][religion=christian],
566 area[historic=wayside_shrine][amenity=place_of_worship][religion=christian] {
567         icon-image: "icons/church.svg";
568         icon-width: 2;
569         z-index: 5;
570         text: name;
571         text-halo-radius: 0.8;
572         text-color: #000000;
573         text-halo-color: #ffffff;
574         text-halo-opacity: 0.8;
575         text-position: center;
576         text-offset: -3;
577         font-family: Times;
578         font-size: 2.5;
579         font-style: italic;
580 }
581
582 node[natural=cave_entrance] {
583         icon-image: "icons/cave2.svg";
584         icon-width: 3;
585         z-index: 5;
586 }
587
588 node[natural=tree][monument=yes][type=broad_leaved] {
589         icon-image: "icons/deciduous.svg";
590         icon-width: 3;
591         z-index: 5;
592         text: name;
593         text-halo-radius: 0.5;
594         text-color: #006322;
595         text-halo-color: #ffffff;
596         text-halo-opacity: 0.8;
597         text-anchor-horizontal: center;
598         text-anchor-vertical: bottom;
599         text-offset: -1;
600         font-family: Times;
601         font-size: 2.5;
602         font-style: italic;
603 }
604
605 node[hack=parkname] {
606         text: name;
607         text-halo-radius: 0.5;
608         text-color: #006322;
609         text-halo-color: #ffffff;
610         text-halo-opacity: 0.8;
611         text-anchor-horizontal: center;
612         text-anchor-vertical: center;
613         text-offset: -1;
614         font-family: Times;
615         font-size: 2.5;
616         font-style: italic;
617 }
618
619 node[hack=suburbname] {
620         text: name;
621         text-halo-radius: 1;
622         text-color: #888888;
623         text-halo-opacity: 0.8;
624         text-halo-color: #ffffff;
625         text-anchor-horizontal: center;
626         text-anchor-vertical: center;
627         font-family: Helvetica;
628         font-size: 6;
629         font-style: italic;
630 }
631
632
633 node[barrier=gate] {
634         icon-image: "icons/gate.svg";
635         icon-width: 1.5;
636         z-index: 5;
637 }
638
639 node[railway=station],
640 node[railway=halt] {
641         icon-image: "icons/train.svg";
642         icon-width: 3;
643         z-index: 5;
644         text: name;
645         text-halo-radius: 0.5;
646         text-color: #000000;
647         text-halo-color: #ffffff;
648         text-halo-opacity: 0.8;
649         text-anchor-horizontal: center;
650         text-anchor-vertical: bottom;
651         text-offset: -2;
652         font-family: Times;
653         font-size: 2.5;
654         font-style: italic;
655 }
656
657 area[railway=station],
658 area[railway=halt] {
659         icon-image: "icons/train.svg";
660         icon-width: 3;
661         z-index: 5;
662         text: name;
663         text-halo-radius: 0.5;
664         text-color: #000000;
665         text-halo-color: #ffffff;
666         text-halo-opacity: 0.8;
667         text-position: center;
668         text-offset: -4;
669         font-family: Times;
670         font-size: 2.5;
671         font-style: italic;
672 }
673
674 node[highway=bus_stop] {
675 //      icon-image: "icons/bus_stop2.svg";
676 //      icon-width: 3;
677         symbol-shape: circle;
678         symbol-size: 0.8;
679         symbol-fill-color: #f55;
680         z-index: 5;
681 }
682
683 node[historic=memorial],
684 node[tourism=artwork][artwork_type=statue] {
685         icon-image: "icons/memorial.svg";
686         icon-width: 1;
687         z-index: 5;
688 }
689
690 way[natural=tree_row] {
691         repeat-image: "icons/deciduous.svg";
692         repeat-image-width: 2;
693         repeat-image-spacing: 2;
694         z-index: 5;
695 }
696
697 /*** Hacks ***/
698
699 node[hack=front],
700 way[hack=front] {
701         z-index: 9;
702 }
703
704 node[hack=raisetext],
705 way[hack=raisetext] {
706         text-offset: 3;
707 }