1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>
|
---|
3 |
|
---|
4 | <!-- Render just captions for z11 -->
|
---|
5 |
|
---|
6 | <rules
|
---|
7 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
8 | xmlns:svg="http://www.w3.org/2000/svg"
|
---|
9 | data="data.osm"
|
---|
10 | svgBaseProfile="full"
|
---|
11 | scale="1"
|
---|
12 | symbolScale="1"
|
---|
13 | minimumMapWidth="1"
|
---|
14 | minimumMapHeight="1"
|
---|
15 | withOSMLayers="yes"
|
---|
16 | withUntaggedSegments="no"
|
---|
17 | showScale="no"
|
---|
18 | showGrid="no"
|
---|
19 | showBorder="no"
|
---|
20 | showLicense="no"
|
---|
21 | interactive="no">
|
---|
22 |
|
---|
23 |
|
---|
24 | <rule e="node|way" k="osmarender:render" v="~|yes">
|
---|
25 | <rule e="node|way" k="osmarender:renderName" v="~|yes">
|
---|
26 |
|
---|
27 | <rule e="node" k="place" v="town|city" horizontalProximity="0.032" verticalProximity="0.016">
|
---|
28 | <rule e="node" k="place" v="town">
|
---|
29 | <text k="name" class='caption-casing town-caption-casing' />
|
---|
30 | <text k="name" class='caption-core town-caption' />
|
---|
31 | </rule>
|
---|
32 | </rule>
|
---|
33 |
|
---|
34 | <rule e="node" k="place" v="city">
|
---|
35 | <text k="name" class='caption-casing city-caption-casing' />
|
---|
36 | <text k="name" class='caption-core city-caption' />
|
---|
37 | </rule>
|
---|
38 |
|
---|
39 | </rule> <!-- k="osmarender:renderName" v="~|yes" -->
|
---|
40 | </rule> <!-- k="osmarender:render" v="~|yes" -->
|
---|
41 |
|
---|
42 |
|
---|
43 | <!-- SVG Definitions - markers, symbols etc go here -->
|
---|
44 | <defs>
|
---|
45 |
|
---|
46 | <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">
|
---|
47 | /* DO NOT DELETE .untagged-segments - Used by osmarender.xsl */
|
---|
48 | .untagged-segments {
|
---|
49 | stroke-width: 0.5px;
|
---|
50 | stroke-linejoin: miter;
|
---|
51 | stroke-linecap: butt;
|
---|
52 | stroke: #e0e0e0;
|
---|
53 | stroke-dasharray: 0.5,0.5;
|
---|
54 | }
|
---|
55 |
|
---|
56 |
|
---|
57 | /* Places - generic styles */
|
---|
58 | .caption-casing {
|
---|
59 | fill: white;
|
---|
60 | stroke: white;
|
---|
61 | font-family: "DejaVu Sans";
|
---|
62 | font-weight: normal;
|
---|
63 | text-anchor: middle;
|
---|
64 | stroke-miterlimit: 1.5;
|
---|
65 | }
|
---|
66 |
|
---|
67 | .caption-core {
|
---|
68 | stroke: white;
|
---|
69 | stroke-width: 0px;
|
---|
70 | font-family: "DejaVu Sans";
|
---|
71 | font-weight: normal;
|
---|
72 | text-anchor: middle;
|
---|
73 | stroke-miterlimit: 1.5;
|
---|
74 | }
|
---|
75 |
|
---|
76 | .city-caption-casing { font-size: 150px; stroke-width: 40px; }
|
---|
77 | .city-caption { font-size: 150px; }
|
---|
78 |
|
---|
79 | .town-caption-casing { font-size: 100px; stroke-width: 30px; }
|
---|
80 | .town-caption { font-size: 100px; }
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 |
|
---|
85 | /* Map decoration */
|
---|
86 | .map-grid-line {
|
---|
87 | fill: none;
|
---|
88 | stroke: #8080ff;
|
---|
89 | stroke-width: 0.1px;
|
---|
90 | stroke-opacity: 0.5;
|
---|
91 | }
|
---|
92 |
|
---|
93 | .map-border-casing {
|
---|
94 | fill: none;
|
---|
95 | stroke: #8080ff;
|
---|
96 | stroke-width: 3px;
|
---|
97 | stroke-miterlimit: 4;
|
---|
98 | stroke-dasharray: none;
|
---|
99 | stroke-opacity: 1;
|
---|
100 | stroke-linecap: round;
|
---|
101 | }
|
---|
102 |
|
---|
103 | .map-border-core {
|
---|
104 | fill: none;
|
---|
105 | fill-opacity: 1;
|
---|
106 | fill-rule: nonzero;
|
---|
107 | stroke: #ffffff;
|
---|
108 | stroke-width: 2px;
|
---|
109 | stroke-miterlimit: 0;
|
---|
110 | stroke-dashoffset: -0.5px;
|
---|
111 | stroke-opacity: 1;
|
---|
112 | }
|
---|
113 |
|
---|
114 | .map-scale-casing {
|
---|
115 | fill: none;
|
---|
116 | stroke: #8080ff;
|
---|
117 | stroke-width: 4px;
|
---|
118 | stroke-linecap: butt;
|
---|
119 | }
|
---|
120 |
|
---|
121 | .map-scale-core {
|
---|
122 | fill: none;
|
---|
123 | stroke: #ffffff;
|
---|
124 | stroke-width: 3px;
|
---|
125 | stroke-linecap: butt;
|
---|
126 | }
|
---|
127 |
|
---|
128 | .map-scale-bookend {
|
---|
129 | fill: none;
|
---|
130 | stroke: #8080ff;
|
---|
131 | stroke-width: 1px;
|
---|
132 | stroke-linecap: butt;
|
---|
133 | }
|
---|
134 |
|
---|
135 | .map-scale-caption {
|
---|
136 | font-family: "DejaVu Sans",sans-serif;
|
---|
137 | font-size: 10px;
|
---|
138 | fill: #8080ff;
|
---|
139 | }
|
---|
140 |
|
---|
141 | <!-- map background must be the same for all zooms or else empty tile detection will fail -->
|
---|
142 | .map-background {
|
---|
143 | fill: #f8f8f8;
|
---|
144 | stroke: none;
|
---|
145 | }
|
---|
146 |
|
---|
147 | .map-title {
|
---|
148 | font-family: "DejaVu Sans",sans-serif;
|
---|
149 | font-size: 20px;
|
---|
150 | text-anchor: middle;
|
---|
151 | fill: black;
|
---|
152 | }
|
---|
153 |
|
---|
154 | .map-title-background {
|
---|
155 | fill: white;
|
---|
156 | }
|
---|
157 |
|
---|
158 | .map-marginalia-background {
|
---|
159 | fill: white;
|
---|
160 | }
|
---|
161 | </style>
|
---|
162 |
|
---|
163 | </defs>
|
---|
164 |
|
---|
165 | </rules>
|
---|