source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/osm-map-features-z8.xml@ 36220

Last change on this file since 36220 was 35743, checked in by stoecker, 4 years ago

readd files directly

File size: 18.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>
3
4<!-- Tiles@Home Rules File for zoom level 8 -->
5<rules
6 xmlns:xlink="http://www.w3.org/1999/xlink"
7 xmlns:svg="http://www.w3.org/2000/svg"
8 data="data.osm"
9 svgBaseProfile="full"
10 scale="1"
11 symbolScale="1"
12 minimumMapWidth="1"
13 minimumMapHeight="1"
14 withOSMLayers="yes"
15 withUntaggedSegments="no"
16 showScale="no"
17 showGrid="no"
18 showBorder="no"
19 showLicense="no"
20 interactive="no">
21
22
23 <!-- Select all nodes and ways (unless they have an osmarender:render=no tag) -->
24 <rule e="node|way" k="osmarender:render" v="~|yes">
25
26 <!-- Draw land areas first -->
27 <rule e="way" k="natural" v="land">
28 <area class="natural-land"/>
29 </rule>
30
31 <!-- Landuse -->
32 <!-- render all landuse in the same colour so it doesn't look too psychedelic -->
33 <rule e="way" k="landuse" v="residential|farmyard|retail|industrial|commercial|cemetery">
34 <area class="landuse-all"/>
35 </rule>
36
37 <!-- Natural features -->
38 <rule e="way" k="natural" v="coastline">
39 <area class="natural-coastline"/>
40 </rule>
41 <rule e="way" k="natural" v="glacier">
42 <line class='natural-glacier'/>
43 </rule>
44 <rule e="way" k="landuse|natural" v="forest|wood">
45 <area class="landuse-wood"/>
46 </rule>
47 <rule e="way" k="landuse" v="field|village_green|meadow">
48 <area class="landuse-field"/>
49 </rule>
50 <rule e="way" k="amenity" v="kindergarten|school|college|university">
51 <area class="landuse-all"/>
52 </rule>
53 <rule e="way" k="leisure" v="park|playing_fields|garden|pitch|golf_course|common|green">
54 <area class="leisure-park"/>
55 </rule>
56 <rule e="way" k="leisure" v="stadium|sports_centre">
57 <area class="leisure-stadium"/>
58 </rule>
59
60 <!-- Airports and runways -->
61
62 <!-- Raceways and racetracks -->
63 <rule e="way" k="landuse" v="raceway">
64 <rule e="way" k="use_status" v="~">
65 <area class="landuse-raceway"/>
66 </rule>
67 </rule>
68
69 <!-- Man-made areas -->
70 <rule e="way" k="sport" v="*">
71 <area class="sport"/>
72 </rule>
73 <rule e="way" k="aeroway" v="terminal">
74 <area class="building-block"/>
75 </rule>
76
77 <!-- Waterways, lakes and ponds -->
78 <rule e="way" k="waterway" v="riverbank">
79 <area class="waterway-riverbank"/>
80 </rule>
81 <rule e="way" k="waterway" v="river">
82 <line class="waterway-river-core"/>
83 </rule>
84 <rule e="way" k="waterway" v="canal">
85 <line class="waterway-canal-core"/>
86 </rule>
87 <rule e="way" k="waterway" v="dock">
88 <area class="natural-water"/>
89 </rule>
90 <rule e="way" k="natural" v="water|pond|lake|bay">
91 <area class="natural-water"/>
92 </rule>
93 <rule e="way" k="landuse" v="reservoir">
94 <area class="natural-water"/>
95 </rule>
96 <rule e="way" k="landuse" v="basin">
97 <area class="natural-water"/>
98 </rule>
99
100 <!-- Paths in tunnels -->
101
102 <!-- Paths not in tunnels -->
103
104 <!-- Highway cores (not in tunnel) -->
105 <rule e="way" k="tunnel" v="~|false|no">
106 <addclass e="way" k="bridge" v="yes|true" class="round">
107 <rule e="way" k="highway" v="raceway">
108 <rule e="way" k="use_status" v="~">
109 <line class="highway-raceway-core"/>
110 </rule>
111 </rule>
112 <rule e="way" k="highway" v="secondary">
113 <line class="highway-core highway-secondary-core"/>
114 </rule>
115 <rule e="way" k="highway" v="primary|primary_link">
116 <line class="highway-core highway-primary-core"/>
117 </rule>
118 <rule e="way" k="highway" v="trunk|trunk_link">
119 <line class="highway-core highway-trunk-core"/>
120 </rule>
121 <rule e="way" k="highway" v="motorway_link">
122 <line class="highway-core highway-motorway-link-core"/>
123 </rule>
124 <rule e="way" k="highway" v="motorway">
125 <line class="highway-core highway-motorway-core"/>
126 </rule>
127 </addclass>
128 </rule>
129
130 <!-- Highway cores in tunnels -->
131 <rule e="way" k="tunnel" v="true|yes">
132 <rule e="way" k="highway" v="service">
133 <tunnel width="10" class="highway-core highway-service-core"/>
134 </rule>
135 <rule e="way" k="highway" v="secondary">
136 <tunnel width="30" class="highway-core highway-secondary-core"/>
137 </rule>
138 <rule e="way" k="highway" v="primary|primary_link">
139 <tunnel width="30" class="highway-core highway-primary-core"/>
140 </rule>
141 <rule e="way" k="highway" v="trunk|trunk_link">
142 <tunnel width="40" class="highway-core highway-trunk-core"/>
143 </rule>
144 <rule e="way" k="highway" v="motorway|motorway_link">
145 <tunnel width="40" class="highway-core highway-motorway-core"/>
146 </rule>
147 </rule>
148
149 <!-- highway motorway-junctions -->
150 <rule e="node" k="highway" v="motorway_junction">
151 <circle r="7" class="highway-motorway-junction"/>
152 <text k="name" class="highway-motorway-junction-caption" dy="-2px"/>
153 <text k="ref" class="highway-motorway-junction-caption" dy="+5px"/>
154 </rule>
155
156 <!-- Railway lines -->
157 <rule e="way" k="railway" v="rail">
158 <line class="railway-rail"/>
159 </rule>
160
161 <!-- Airfields and airports -->
162 <rule e="way" k="aeroway" v="runway">
163 <line class="aeroway-runway-core"/>
164 </rule>
165 <rule e="node" k="aeroway" v="airport">
166 <symbol xlink:href="#airport" width="400px" height="400px" transform="translate(-200,-200)"/>
167 </rule>
168
169 <!-- Non-physical routes -->
170 <rule e="way" k="route" v="ferry">
171 <line class="route-ferry"/>
172 </rule>
173 </rule>
174
175 <!-- ==================================== Layer 5 ================================== -->
176 <rule e="node|way" k="osmarender:render" v="~|yes" layer="5">
177
178 <!-- Non-physical boundaries -->
179 <rule e="way" k="boundary" v="administrative" layer="5">
180 <rule e="way" k="border_type" v="state" layer="5">
181 <line class="boundary boundary-administrative-state-casing"/>
182 <line class="boundary boundary-administrative-state-core"/>
183 </rule>
184 <else>
185 <line class="boundary boundary-administrative-state-core"/>
186 </else>
187 </rule>
188
189 <rule e="way" k="boundary" v="national_park" layer="5">
190 <line class="boundary boundary-nationalpark-core" layer="5"/>
191 </rule>
192
193 <!-- Place names -->
194 <rule e="node" k="place" v="island" layer="5">
195 <text k="name" class="island-caption"/>
196 </rule>
197 <rule e="node" k="place" v="continent" layer="5">
198 <text k="name" class="continent-caption"/>
199 </rule>
200 <rule e="node" k="place" v="country" layer="5">
201 <text k="name" class="country-caption"/>
202 </rule>
203 <rule e="node" k="place" v="state" layer="5">
204 <text k="name" class="state-caption"/>
205 </rule>
206 <rule e="node" k="place" v="region" layer="5">
207 <text k="name" class="region-caption"/>
208 </rule>
209 <rule e="node" k="place" v="county" layer="5">
210 <text k="name" class="county-caption"/>
211 </rule>
212 <rule e="node" k="place" v="city" layer="5">
213 <text k="name" class="city-caption"/>
214 </rule>
215 <rule e="node" k="place" v="town" layer="5">
216 <text k="name" class="town-caption"/>
217 </rule>
218 </rule> <!-- End Layer 5 -->
219
220 <!-- SVG Definitions - markers, symbols etc go here -->
221 <defs>
222 <style xmlns="http://www.w3.org/2000/svg" id="styles" type="text/css">
223 .debug {
224 stroke-width: 0.1px;
225 stroke-linecap: round;
226 stroke: gray;
227 /* marker-end: url(#segment-direction); */
228 }
229
230 .highway-core {
231 stroke-linecap: butt;
232 stroke-linejoin: round;
233 fill: none;
234 }
235
236 .highway-motorway-junction {
237 fill: yellow;
238 stroke: #4D5D73;
239 stroke-width: 3px;
240 }
241
242 .highway-motorway-junction-caption {
243 fill: black;
244 stroke: blue;
245 stroke-width: 0.2px;
246 font-family: "DejaVu Sans",sans-serif;
247 font-size: 10px;
248 font-weight: bold;
249 display: none;
250 }
251
252 /* Highways - street specific style */
253
254 .highway-motorway-core {
255 stroke-width: 66px;
256 stroke: #809BC0;
257 }
258
259 .highway-motorway-link-core {
260 stroke-width: 50px;
261 stroke: #809BC0;
262 }
263
264 .highway-trunk-core {
265 stroke-width: 36px;
266 stroke: #7fc97f;
267 }
268
269 .highway-primary-core {
270 stroke-width: 14px;
271 stroke: #e46d71;
272 }
273
274 .highway-secondary-core {
275 stroke-width: 12px;
276 stroke: #FDBF6F;
277 }
278
279 .highway-service-core {
280 stroke-width: 0.4px;
281 stroke: #ffffff;
282 }
283
284
285 .round {
286 stroke-linecap: round;
287 }
288
289
290 /* Mini roundabouts */
291
292 /* Aeroways */
293 .aeroway-runway-core {
294 stroke-width: 5px;
295 stroke-linecap: butt;
296 stroke-linejoin: round;
297 stroke: #d4dcbd;
298 fill: none;
299 }
300
301 /* Waterways */
302 .waterway-riverbank {
303 fill: #b5d6f1;
304 stroke: #aaaaaa;
305 stroke-width: 0px;
306 }
307
308 .waterway-river-core {
309 stroke-width: 30px;
310 stroke-linecap: butt;
311 stroke-linejoin: round;
312 stroke: #b5d6f1;
313 fill: none;
314 }
315
316 .waterway-canal-core {
317 stroke-width: 30px;
318 stroke-linecap: butt;
319 stroke-linejoin: round;
320 stroke: #b5d6f1;
321 fill: none;
322 }
323
324 .railway-rail {
325 stroke-width: 70px;
326 stroke-linecap: butt;
327 stroke-linejoin: round;
328 stroke: #666666;
329 fill: none;
330 }
331
332 /* Ferry */
333 .route-ferry {
334 stroke-width: 20px;
335 stroke-dasharray: 300,200;
336 stroke-linecap: butt;
337 stroke-linejoin: round;
338 stroke: #777777;
339 fill: none;
340 }
341
342
343 /* Place names */
344 .continent-caption {
345 fill: black;
346 stroke: white;
347 stroke-width: 0.6px;
348 font-family: "DejaVu Sans",sans-serif;
349 font-size: 1000px;
350 font-weight: bold;
351 text-anchor: middle;
352 }
353
354 .country-caption {
355 fill: black;
356 stroke: white;
357 stroke-width: 0.5px;
358 font-family: "DejaVu Sans",sans-serif;
359 font-size: 900px;
360 font-weight: bold;
361 text-anchor: middle;
362 }
363
364 .state-caption {
365 fill: black;
366 stroke: white;
367 stroke-width: 0.5px;
368 font-family: "DejaVu Sans",sans-serif;
369 font-size: 800px;
370 font-weight: bold;
371 text-anchor: middle;
372 }
373
374 .region-caption {
375 fill: black;
376 stroke: white;
377 stroke-width: 0.4px;
378 font-family: "DejaVu Sans",sans-serif;
379 font-size: 700px;
380 font-weight: bold;
381 text-anchor: middle;
382 }
383
384 .county-caption {
385 fill: black;
386 stroke: white;
387 stroke-width: 0.4px;
388 font-family: "DejaVu Sans",sans-serif;
389 font-size: 600px;
390 font-weight: bold;
391 text-anchor: middle;
392 }
393
394 .city-caption {
395 fill: black;
396 stroke: none;
397 font-family: "DejaVu Sans",sans-serif;
398 font-size: 700px;
399 font-weight: bold;
400 text-anchor: middle;
401 }
402
403 .town-caption {
404 fill: black;
405 stroke: none;
406 font-family: "DejaVu Sans",sans-serif;
407 font-size: 350px;
408 opacity: 0.9;
409 font-weight: normal;
410 text-anchor: middle;
411 }
412
413 .island-caption {
414 fill: black;
415 stroke: none;
416 font-family: "DejaVu Sans",sans-serif;
417 font-size: 350px;
418 opacity: 0.9;
419 font-weight: normal;
420 text-anchor: middle;
421 }
422
423 /* Natural */
424 .natural-water {
425 fill: #b5d6f1;
426 stroke: #aaaaaa;
427 stroke-width: 0px;
428 }
429
430 .natural-coastline {
431 fill: #b5d6f1;
432 stroke: #b5d6f1;
433 stroke-width: 15px;
434 }
435
436 .natural-glacier {
437 fill: #fafaff;
438 stroke: lightblue;
439 stroke-width: 15px;
440 }
441
442 .natural-land {
443 fill: #ffffff;
444 stroke: #e0e0e0;
445 stroke-width: 2px;
446 }
447
448
449 /* Landuse */
450 .landuse-all {
451 stroke: none;
452 fill: #f0f0f0;
453 }
454
455 .landuse-wood {
456 fill: #72bf81;
457 stroke: #6fc18e;
458 stroke-width: 2px;
459 }
460
461 .landuse-field {
462 fill: #bde3cb;
463 stroke: #6fc13d;
464 stroke-width: 2px;
465 }
466
467
468 /* Leisure */
469 .leisure-park {
470 fill: #c7f1a3;
471 stroke: #6fc18e;
472 stroke-width: 2px;
473 }
474
475 .leisure-stadium {
476 fill: #bde3cb;
477 stroke: #6fc18e;
478 stroke-width: 2px;
479 }
480
481 .sport {
482 fill: #bde3cb;
483 stroke: #6fc18e;
484 stroke-width: 2px;
485 }
486
487
488 /* Non-physical boundaries */
489 .boundary {
490 stroke-linecap: butt;
491 stroke-linejoin: round;
492 fill: none;
493 }
494
495 .boundary-administrative-state-casing {
496 stroke-width: 80px;
497 stroke: #ffff00;
498 opacity: 0.5;
499 }
500
501 .boundary-administrative-state-core {
502 stroke-width: 16px;
503 stroke: #f9574b;
504 stroke-dasharray: 80, 16, 16, 16;
505 }
506
507 .boundary-nationalpark-core {
508 stroke-width: 16px;
509 stroke: #4ef94b;
510 stroke-dasharray: 80, 16, 16, 16;
511 }
512
513
514 /* Racetracks */
515 .highway-raceway-core {
516 stroke-width: 1.5px;
517 stroke-linecap: butt;
518 stroke-linejoin: round;
519 fill: none;
520 stroke: #f0f0f0;
521 }
522
523 .landuse-raceway {
524 stroke-width: 0.3px;
525 stroke-linecap: butt;
526 stroke-linejoin: round;
527 fill: #f0f0f0;
528 stroke: #101010;
529 }
530
531
532 /* Tourism */
533
534 /* Building */
535
536 /* Map decoration */
537 .map-grid-line {
538 fill: none;
539 stroke: #8080ff;
540 stroke-width: 0.1px;
541 stroke-opacity: 0.5;
542 }
543
544 .map-border-casing {
545 fill: none;
546 stroke: #8080ff;
547 stroke-width: 3px;
548 stroke-miterlimit: 4;
549 stroke-dasharray: none;
550 stroke-opacity: 1;
551 stroke-linecap: round;
552 }
553
554 .map-border-core {
555 fill: none;
556 fill-opacity: 1;
557 fill-rule: nonzero;
558 stroke: #ffffff;
559 stroke-width: 2px;
560 stroke-miterlimit: 0;
561 stroke-dashoffset: -0.5px;
562 stroke-opacity: 1;
563 }
564
565 .map-scale-casing {
566 fill: none;
567 stroke: #8080ff;
568 stroke-width: 4px;
569 stroke-linecap: butt;
570 }
571
572 .map-scale-core {
573 fill: none;
574 stroke: #ffffff;
575 stroke-width: 3px;
576 stroke-linecap: butt;
577 }
578
579 .map-scale-bookend {
580 fill: none;
581 stroke: #8080ff;
582 stroke-width: 1px;
583 stroke-linecap: butt;
584 }
585
586 .map-scale-caption {
587 font-family: "DejaVu Sans",sans-serif;
588 font-size: 10px;
589 fill: #8080ff;
590 }
591
592 <!-- map background must be the same for all zooms or else empty tile detection will fail -->
593 .map-background {
594 fill: #f8f8f8;
595 stroke: none;
596 }
597
598 .map-title {
599 font-family: "DejaVu Sans",sans-serif;
600 font-size: 20px;
601 text-anchor: middle;
602 fill: black;
603 }
604
605 .map-title-background {
606 fill: white;
607 }
608
609 .map-marginalia-background {
610 fill: white;
611 }
612 </style>
613
614 <svg:symbol id="airport" viewBox="0 0 10 10" fill="black" fill-opacity="1" fill-rule="evenodd" stroke="none">
615 <svg:path d="M 9.2,5 C 9.2,4.5 9.8,3.2 10,3 L 9,3 L 8,4 L 5.5,4 L 8,0 L 6,0 L 3,4 C 2,4 1,4.2 0.5,4.5 C 0,5 0,5 0.5,5.5 C 1,5.8 2,6 3,6 L 6,10 L 8,10 L 5.5,6 L 7.8,6 L 9,7 L 10,7 C 9.8,6.8 9.2,5.5 9.2,5 z "/>
616 </svg:symbol>
617 </defs>
618</rules>
Note: See TracBrowser for help on using the repository browser.