source: osm/applications/editors/josm/oldplugins/osmarender/stylesheets/maplint.xml@ 36388

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

readd files directly

File size: 17.4 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>
3
4<!-- This file should be used with Osmarender 4 -->
5<!-- This rule file is for use with Maplint. See https://wiki.openstreetmap.org/index.php/Maplint for details -->
6
7<!-- A scale of 0.1 will make fat roads on a small map, a scale of 5 will draw very thin roads on a large scale map -->
8<!-- minimumMapWidth/Height is in kilometres -->
9<!-- Set javaScript="no" if you want an svg file that contains no javascript. This is so that you can upload it to Wikipedia etc -->
10<rules
11 xmlns:xlink="http://www.w3.org/1999/xlink"
12 xmlns:svg="http://www.w3.org/2000/svg"
13 data="data.osm"
14 svgBaseProfile="full"
15 scale="1"
16 symbolScale="4"
17 minimumMapWidth="0.5"
18 minimumMapHeight="0.5"
19 withOSMLayers="no"
20 withUntaggedSegments="no"
21 symbolsDir=""
22 showScale="yes"
23 showGrid="yes"
24 showBorder="yes"
25 showLicense="yes"
26 interactive="no">
27
28 <!-- Uncomment this element if you want to explicitly specify the bounding box for a map, or you can add a <bounds> element to
29 your data.osm file, which is probably a better thing to do. -->
30 <!--<bounds
31 minlat="51.50583362991789"
32 minlon="-0.13313005495563884"
33 maxlat="51.516556840221504"
34 maxlon="-0.10891295872251346" />-->
35
36 <!-- Select all nodes, waysegments and ways (unless they have an osmarender:render=no tag) -->
37 <!-- If you really want to render segments then you will need to add segment to the element list, but please don't - tag the ways instead. -->
38 <rule e="node|segment|waysegment|way" k="osmarender:render" v="~|yes">
39
40 <layer name="Areas">
41 <rule e="way" k="landuse" v="forest|wood">
42 <area class='area-green'/>
43 </rule>
44 <rule e="way" k="natural" v="forest|wood">
45 <area class='area-green'/>
46 </rule>
47 <rule e="way" k="leisure" v="park|playing_fields|garden|pitch|golf_course|common|green">
48 <area class='area-green'/>
49 </rule>
50 <rule e="way" k="natural" v="water|pond|lake|bay">
51 <area class='area-lake' />
52 </rule>
53 </layer>
54
55 <layer name="Todo">
56 <rule e="node" k="todo" v="*">
57 <circle r="4" class="maplint-node-todo"/>
58 </rule>
59 </layer>
60
61 <layer name="Maplint">
62 <rule e="way" k="maplint:notice" v="*">
63 <line class="maplint-way-notice-casing"/>
64 <line class="maplint-way-notice-core"/>
65 </rule>
66 <rule e="segment" k="maplint:notice" v="*">
67 <line class="maplint-segment-notice"/>
68 </rule>
69 <rule e="node" k="maplint:notice" v="*">
70 <circle r="4" class="maplint-node-notice"/>
71 </rule>
72
73 <rule e="way" k="maplint:warning" v="*">
74 <line class="maplint-way-warning-casing"/>
75 <line class="maplint-way-warning-core"/>
76 </rule>
77 <rule e="segment" k="maplint:warning" v="*">
78 <line class="maplint-segment-warning"/>
79 </rule>
80 <rule e="node" k="maplint:warning" v="*">
81 <circle r="4" class="maplint-node-warning"/>
82 </rule>
83
84 <rule e="way" k="maplint:error" v="*">
85 <line class="maplint-way-error-casing"/>
86 <line class="maplint-way-error-core"/>
87 </rule>
88 <rule e="segment" k="maplint:error" v="*">
89 <line class="maplint-segment-error"/>
90 </rule>
91 <rule e="node" k="maplint:error" v="*">
92 <circle r="4" class="maplint-node-error"/>
93 </rule>
94 </layer>
95
96 <!-- Waterways -->
97 <layer name="Waterways">
98 <rule e="segment|way" k="waterway" v="*">
99 <line class='waterway-river'/>
100 </rule>
101 </layer>
102
103
104 <!-- Roads and paths -->
105 <layer name="Roads and Paths">
106
107 <rule e="segment|way" k="highway" v="service|unsurfaced|track|byway|bridleway|cycleway|footway|steps">
108 <line class='highway-small' />
109 </rule>
110
111 <rule e="segment|way" k="highway" v="unclassified|residential|minor|tertiary|pedestrian">
112 <line class='highway-minor' />
113 </rule>
114
115 <rule e="segment|way" k="highway" v="secondary|primary|primary_link">
116 <line class='highway-primary' />
117 </rule>
118
119 <rule e="segment|way" k="highway" v="motorway_link|motorway|trunk_link|trunk">
120 <line class='highway-major' />
121 </rule>
122
123 </layer>
124
125
126 <!-- Railway lines -->
127 <rule e="segment|way" k="railway" v="*">
128 <layer name="Railway/Subway/Tram">
129
130 <rule e="segment|way" k="railway" v="rail">
131 <line class='railway-rail' />
132 <line class='railway-rail-dashes' />
133 </rule>
134 <rule e="segment|way" k="railway" v="light_rail|tram">
135 <line class='railway-light-rail' />
136 </rule>
137 <rule e="segment|way" k="railway" v="subway">
138 <line class='railway-subway-rail' />
139 </rule>
140
141 </layer>
142 </rule>
143
144
145 <!-- Airfields and airports -->
146 <rule e="node|segment|way" k="aeroway" v="*">
147 <layer name="Airfields and airports">
148 <rule e="segment|way" k="aeroway" v="runway">
149 <line class='aeroway-runway-core'/>
150 </rule>
151 <rule e="segment|way" k="aeroway" v="taxiway">
152 <line class='aeroway-taxiway-core'/>
153 </rule>
154 </layer>
155 </rule>
156
157
158 <!-- Power lines and pylons -->
159 <rule e="node|way" k="power" v="*">
160 <layer name="Power lines">
161 <rule e="way" k="power" v="line">
162 <line class='power-line'/>
163 </rule>
164 </layer>
165 </rule>
166
167
168 <!-- Non-pysical routes -->
169 <rule e="segment|way" k="route" v="ferry">
170 <layer name="Ferry">
171 <line class='route-ferry' />
172 </layer>
173 </rule>
174
175 <layer name="Maplint node dots">
176 <rule e="node" k="maplint:notice|maplint:warning|maplint:error|todo" v="*">
177 <circle r="0.8" class="maplint-node-dot"/>
178 </rule>
179 </layer>
180
181 <layer name="Maplint text">
182 <rule e="segment|way" k="maplint:notice" v="*">
183 <text k="maplint:notice" startOffset="50%" class='maplint-text' dy="0.33" />
184 </rule>
185 <rule e="segment|way" k="maplint:warning" v="*">
186 <text k="maplint:warning" startOffset="50%" class='maplint-text' dy="0.33" />
187 </rule>
188 <rule e="segment|way" k="maplint:error" v="*">
189 <text k="maplint:error" startOffset="50%" class='maplint-text' dy="0.33" />
190 </rule>
191
192 <rule e="node" k="maplint:notice" v="*">
193 <text k="maplint:notice" class='maplint-caption' dx='2.5px' dy='1.5px' />
194 </rule>
195 <rule e="node" k="maplint:warning" v="*">
196 <text k="maplint:warning" class='maplint-caption' dx='2.5px' dy='1.5px' />
197 </rule>
198 <rule e="node" k="maplint:error" v="*">
199 <text k="maplint:error" class='maplint-caption' dx='2.5px' dy='1.5px' />
200 </rule>
201 </layer>
202
203 </rule>
204
205
206 <!-- SVG Definitions - markers, symbols etc go here -->
207 <defs>
208
209 <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">
210 /* Highways */
211
212 .highway-major {
213 stroke-width: 2px;
214 stroke-linejoin: round;
215 stroke: #909090;
216 fill: none;
217 }
218
219 .highway-primary {
220 stroke-width: 1.5px;
221 stroke-linejoin: round;
222 stroke: #909090;
223 fill: none;
224 }
225
226 .highway-minor {
227 stroke-width: 1.2px;
228 stroke-linejoin: round;
229 stroke: #909090;
230 fill: none;
231 }
232
233 .highway-small {
234 stroke-width: 1px;
235 stroke-linejoin: round;
236 stroke: #a0a0a0;
237 fill: none;
238 }
239
240 /* Aeroways */
241 .aeroway-taxiway-core {
242 stroke-width: 1px;
243 stroke-linecap: butt;
244 stroke-linejoin: round;
245 stroke: #CCCCCC;
246 fill: none;
247 }
248
249 .aeroway-runway-core {
250 stroke-width: 5px;
251 stroke-linecap: butt;
252 stroke-linejoin: round;
253 stroke: #CCCCCC;
254 fill: none;
255 }
256
257 .aeroway-aerodrome-caption {
258 fill: black;
259 stroke: white;
260 stroke-width: 0.3px;
261 font-family: "DejaVu Sans",sans-serif;
262 font-size: 6px;
263 font-weight: bolder;
264 }
265
266 .aeroway-airport-caption {
267 fill: black;
268 stroke: white;
269 stroke-width: 0.3px;
270 font-family: "DejaVu Sans",sans-serif;
271 font-size: 10px;
272 font-weight: bolder;
273 }
274
275
276 /* Waterways */
277 .waterway-river {
278 stroke-width: 3px;
279 stroke-linecap: butt;
280 stroke-linejoin: round;
281 stroke: #89bac6;
282 fill: none;
283 }
284
285 .railway-rail {
286 stroke-width: 1.5px;
287 stroke-linecap: butt;
288 stroke-linejoin: round;
289 stroke: #808080;
290 fill: none;
291 }
292
293 .railway-light-rail {
294 stroke-width: 0.8px;
295 stroke-linecap: butt;
296 stroke-linejoin: round;
297 stroke: #808080;
298 fill: none;
299 }
300
301 .railway-subway-rail {
302 stroke-width: 0.8px;
303 stroke-linecap: butt;
304 stroke-linejoin: round;
305 stroke: #aaaaaa;
306 fill: none;
307 stroke-dasharray: 3px, 1px;
308 stroke-dashoffset: 0;
309 stroke-opacity: 1;
310 }
311
312 .railway-rail-dashes {
313 stroke-width: 1px;
314 stroke-linecap: butt;
315 stroke-linejoin: round;
316 stroke: #ffffff;
317 fill: none;
318 stroke-dasharray: 3px, 3px;
319 stroke-opacity: 1;
320 }
321
322 .railway-station {
323 fill: #808080;
324 stroke: #808080;
325 stroke-width: 0.5px;
326 }
327
328 .railway-station-caption {
329 fill: black;
330 stroke: white;
331 stroke-width: 0.2px;
332 font-family: "DejaVu Sans",sans-serif;
333 font-size: 4px;
334 font-weight: bolder;
335 }
336
337 .railway-halt {
338 fill: #808080;
339 stroke: #808080;
340 stroke-width: 0.5px;
341 }
342
343 .railway-halt-caption {
344 fill: black;
345 stroke: white;
346 stroke-width: 0.1px;
347 font-family: "DejaVu Sans",sans-serif;
348 font-size: 2px;
349 font-weight: bolder;
350 }
351
352
353 /* Ferry */
354 .route-ferry {
355 stroke-width: 0.5px;
356 stroke-linecap: butt;
357 stroke-linejoin: round;
358 stroke: #777777;
359 fill: none;
360 }
361
362
363 /* Points of interest */
364 .point-of-interest {
365 fill: red;
366 stroke: black;
367 stroke-width: 0.5px;
368 }
369
370
371 /* Areas */
372 .area-green {
373 fill: #f5f5f5;
374 stroke: none;
375 }
376 .area-lake {
377 fill: #89bac6;
378 stroke: none;
379 }
380
381
382 /* JOSM Debugging */
383 .josm-segment {
384 stroke-width: 0.2px;
385 stroke-linecap: butt;
386 stroke-linejoin: round;
387 stroke: #008000;
388 fill: none;
389 marker-end: url(#segment-direction);
390 }
391
392
393 /* Power line */
394 .power-line {
395 stroke-width: 0.1px;
396 stroke-linecap: butt;
397 stroke-linejoin: round;
398 stroke: #cccccc;
399 stroke-dasharray: 1px ,1px;
400 fill: none;
401 }
402
403
404 /* Maplint */
405 .maplint-node-error {
406 fill: #e74444;
407 }
408
409 .maplint-node-warning {
410 fill: #f89559;
411 }
412
413 .maplint-node-notice {
414 fill: #e2f91d;
415 }
416
417 .maplint-node-todo {
418 fill: #0000e0;
419 }
420
421 .maplint-node-dot {
422 fill: black;
423 }
424
425 .maplint-segment-error {
426 fill: none;
427 stroke: #e74444;
428 stroke-width: 5px;
429 }
430
431 .maplint-segment-warning {
432 fill: none;
433 stroke: #f89559;
434 stroke-width: 5px;
435 }
436
437 .maplint-segment-notice {
438 fill: none;
439 stroke: #e2f91d;
440 stroke-width: 5px;
441 }
442
443 .maplint-way-error-casing {
444 fill: none;
445 stroke: #e74444;
446 stroke-width: 5px;
447 }
448
449 .maplint-way-warning-casing {
450 fill: none;
451 stroke: #f89559;
452 stroke-width: 5px;
453 }
454
455 .maplint-way-notice-casing {
456 fill: none;
457 stroke: #e2f91d;
458 stroke-width: 5px;
459 }
460
461 .maplint-way-error-core {
462 fill: none;
463 stroke: #fcfcfc;
464 stroke-width: 3.5px;
465 }
466
467 .maplint-way-warning-core {
468 fill: none;
469 stroke: #fcfcfc;
470 stroke-width: 3.5px;
471 }
472
473 .maplint-way-notice-core {
474 fill: none;
475 stroke: #fcfcfc;
476 stroke-width: 3.5px;
477 }
478
479 .maplint-text {
480 fill: black;
481 font-family: "DejaVu Sans",sans-serif;
482 font-size: 2px;
483 font-weight: bold;
484 text-anchor: middle
485 }
486
487 .maplint-caption {
488 fill: black;
489 stroke: white;
490 stroke-width: 0.2px;
491 font-family: "DejaVu Sans",sans-serif;
492 font-size: 3px;
493 font-weight: bolder;
494 }
495
496 /* Map decoration */
497 .map-grid-line {
498 fill: none;
499 stroke: #8080ff;
500 stroke-width: 0.1px;
501 stroke-opacity: 0.5;
502 }
503
504 .map-border-casing {
505 fill: none;
506 stroke: #8080ff;
507 stroke-width: 3px;
508 stroke-miterlimit: 4;
509 stroke-dasharray: none;
510 stroke-opacity: 1;
511 stroke-linecap: round;
512 }
513
514 .map-border-core {
515 fill: none;
516 fill-opacity: 1;
517 fill-rule: nonzero;
518 stroke: #ffffff;
519 stroke-width: 2px;
520 stroke-miterlimit: 0;
521 stroke-dashoffset: -0.5px;
522 stroke-opacity: 1;
523 }
524
525 .map-scale-casing {
526 fill: none;
527 stroke: #8080ff;
528 stroke-width: 4px;
529 stroke-linecap: butt;
530 }
531
532 .map-scale-core {
533 fill: none;
534 stroke: #ffffff;
535 stroke-width: 3px;
536 stroke-linecap: butt;
537 }
538
539 .map-scale-bookend {
540 fill: none;
541 stroke: #8080ff;
542 stroke-width: 1px;
543 stroke-linecap: butt;
544 }
545
546 .map-scale-caption {
547 font-family: "DejaVu Sans",sans-serif;
548 font-size: 10px;
549 fill: #8080ff;
550 }
551
552 .map-background {
553 fill: #fcfcfc;
554 stroke: none;
555 }
556
557 .map-title {
558 font-family: "DejaVu Sans",sans-serif;
559 font-size: 20px;
560 text-anchor: middle;
561 fill: black;
562 }
563
564 .map-title-background {
565 fill: white;
566 }
567
568 .map-marginalia-background {
569 fill: white;
570 }
571 </style>
572
573 <svg:marker
574 id="segment-direction"
575 viewBox="0 0 10 10"
576 refX="10px" refY="5px"
577 markerUnits="userSpaceOnUse"
578 fill='none'
579 stroke-width='1px'
580 stroke='#008000'
581 markerWidth="1px"
582 markerHeight="1px"
583 orient="auto">
584 <svg:path d="M 0,2 L 10,5 L 0,8" />
585 </svg:marker>
586
587 </defs>
588
589</rules>
Note: See TracBrowser for help on using the repository browser.