source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/osm-map-features-z9.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 9 -->
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="200px" height="200px" transform="translate(-100,-100)"/>
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: 50px;
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: 20px;
271 stroke: #e46d71;
272 }
273
274 .highway-secondary-core {
275 stroke-width: 16px;
276 stroke: #FDBF6F;
277 }
278
279 .highway-service-core {
280 stroke-width: 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: 12px;
310 stroke-linecap: butt;
311 stroke-linejoin: round;
312 stroke: #b5d6f1;
313 fill: none;
314 }
315
316 .waterway-canal-core {
317 stroke-width: 12px;
318 stroke-linecap: butt;
319 stroke-linejoin: round;
320 stroke: #b5d6f1;
321 fill: none;
322 }
323
324 .railway-rail {
325 stroke-width: 50px;
326 stroke-linecap: butt;
327 stroke-linejoin: round;
328 stroke: #666666;
329 fill: none;
330 }
331
332 /* Ferry */
333 .route-ferry {
334 stroke-width: 30px;
335 stroke-dasharray: 3,2;
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: 500px;
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: 380px;
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: 160px;
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: 140px;
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: 120px;
390 font-weight: bold;
391 text-anchor: middle;
392 }
393
394 .city-caption {
395 fill: black;
396 stroke: none;
397 stroke-width: 0.4px;
398 font-family: "DejaVu Sans",sans-serif;
399 font-size: 400px;
400 font-weight: bold;
401 text-anchor: middle;
402 }
403
404 .town-caption {
405 fill: black;
406 stroke: none;
407 font-family: "DejaVu Sans",sans-serif;
408 font-size: 200px;
409 opacity: 0.9;
410 font-weight: normal;
411 text-anchor: middle;
412 }
413
414 .island-caption {
415 fill: black;
416 stroke: none;
417 font-family: "DejaVu Sans",sans-serif;
418 font-size: 200px;
419 opacity: 0.9;
420 font-weight: normal;
421 text-anchor: middle;
422 }
423
424 /* Natural */
425 .natural-water {
426 fill: #b5d6f1;
427 stroke: #aaaaaa;
428 stroke-width: 0px;
429 }
430
431 .natural-coastline {
432 fill: #b5d6f1;
433 stroke: #b5d6f1;
434 stroke-width: 15px;
435 }
436
437 .natural-glacier {
438 fill: #fafaff;
439 stroke: lightblue;
440 stroke-width: 15px;
441 }
442
443 .natural-land {
444 fill: #ffffff;
445 stroke: #e0e0e0;
446 stroke-width: 10px;
447 }
448
449
450 /* Landuse */
451 .landuse-all {
452 stroke: none;
453 fill: #f0f0f0;
454 }
455
456 .landuse-wood {
457 fill: #72bf81;
458 stroke: #6fc18e;
459 stroke-width: 2px;
460 }
461
462 .landuse-field {
463 fill: #bde3cb;
464 stroke: #6fc13d;
465 stroke-width: 2px;
466 }
467
468
469 /* Leisure */
470 .leisure-park {
471 fill: #c7f1a3;
472 stroke: #6fc18e;
473 stroke-width: 2px;
474 }
475
476 .leisure-stadium {
477 fill: #bde3cb;
478 stroke: #6fc18e;
479 stroke-width: 2px;
480 }
481
482 .sport {
483 fill: #bde3cb;
484 stroke: #6fc18e;
485 stroke-width: 2px;
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 /* Racetracks */
514 .highway-raceway-core {
515 stroke-width: 1.5px;
516 stroke-linecap: butt;
517 stroke-linejoin: round;
518 fill: none;
519 stroke: #f0f0f0;
520 }
521
522 .landuse-raceway {
523 stroke-width: 0.3px;
524 stroke-linecap: butt;
525 stroke-linejoin: round;
526 fill: #f0f0f0;
527 stroke: #101010;
528 }
529
530
531 /* Tourism */
532
533 /* Building */
534
535 /* Map decoration */
536 .map-grid-line {
537 fill: none;
538 stroke: #8080ff;
539 stroke-width: 0.1px;
540 stroke-opacity: 0.5;
541 }
542
543 .map-border-casing {
544 fill: none;
545 stroke: #8080ff;
546 stroke-width: 3px;
547 stroke-miterlimit: 4;
548 stroke-dasharray: none;
549 stroke-opacity: 1;
550 stroke-linecap: round;
551 }
552
553 .map-border-core {
554 fill: none;
555 fill-opacity: 1;
556 fill-rule: nonzero;
557 stroke: #ffffff;
558 stroke-width: 2px;
559 stroke-miterlimit: 0;
560 stroke-dashoffset: -0.5px;
561 stroke-opacity: 1;
562 }
563
564 .map-scale-casing {
565 fill: none;
566 stroke: #8080ff;
567 stroke-width: 4px;
568 stroke-linecap: butt;
569 }
570
571 .map-scale-core {
572 fill: none;
573 stroke: #ffffff;
574 stroke-width: 3px;
575 stroke-linecap: butt;
576 }
577
578 .map-scale-bookend {
579 fill: none;
580 stroke: #8080ff;
581 stroke-width: 1px;
582 stroke-linecap: butt;
583 }
584
585 .map-scale-caption {
586 font-family: "DejaVu Sans",sans-serif;
587 font-size: 10px;
588 fill: #8080ff;
589 }
590
591 <!-- map background must be the same for all zooms or else empty tile detection will fail -->
592 .map-background {
593 fill: #f8f8f8;
594 stroke: none;
595 }
596
597 .map-title {
598 font-family: "DejaVu Sans",sans-serif;
599 font-size: 20px;
600 text-anchor: middle;
601 fill: black;
602 }
603
604 .map-title-background {
605 fill: white;
606 }
607
608 .map-marginalia-background {
609 fill: white;
610 }
611 </style>
612
613 <svg:symbol id="airport" viewBox="0 0 10 10" fill="black" fill-opacity="1" fill-rule="evenodd" stroke="none">
614 <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 "/>
615 </svg:symbol>
616 </defs>
617</rules>
Note: See TracBrowser for help on using the repository browser.