1 | <?xml version='1.0' encoding='UTF-8'?> |
---|
2 | <?xml-stylesheet type="text/xsl" href="osmarender.xsl"?> |
---|
3 | |
---|
4 | <!-- Render just captions for z6 --> |
---|
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="0" |
---|
14 | minimumMapHeight="0" |
---|
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:renderName" v="~|yes" layer="5"> |
---|
25 | <!-- Non-physical boundaries --> |
---|
26 | <rule e="way" k="admin_level" v="2" layer="5"> |
---|
27 | <line class="boundary boundary-level-2-casing" layer="5"/> |
---|
28 | <line class="boundary boundary-level-2-core" layer="5"/> |
---|
29 | </rule> |
---|
30 | <rule e="way" k="admin_level" v="1" layer="5"> |
---|
31 | <line class="boundary boundary-level-1-casing" layer="5"/> |
---|
32 | <line class="boundary boundary-level-1-core" layer="5"/> |
---|
33 | </rule> |
---|
34 | |
---|
35 | <rule e="node" k="place" v="*" layer="5"> |
---|
36 | <rule e="node" k="capital" v="~|no|false|False" layer="5"> |
---|
37 | <rule e="node" k="place" v="city" horizontalProximity="0.8" verticalProximity="0.6" layer="5"> |
---|
38 | <text k="name" class='caption-casing city-caption-casing' /> |
---|
39 | <text k="name" class='caption-core city-caption' /> |
---|
40 | </rule> |
---|
41 | </rule> |
---|
42 | <else> |
---|
43 | <text k="name" class='caption-casing capital-caption-casing' /> |
---|
44 | <text k="name" class='caption-core capital-caption' /> |
---|
45 | </else> |
---|
46 | </rule> <!-- e="node" k="place" v="*" --> |
---|
47 | |
---|
48 | </rule> <!-- k="osmarender:renderName" v="~|yes" --> |
---|
49 | |
---|
50 | <!-- SVG Definitions - markers, symbols etc go here --> |
---|
51 | <defs> |
---|
52 | |
---|
53 | <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg"> |
---|
54 | /* DO NOT DELETE .untagged-segments - Used by osmarender.xsl */ |
---|
55 | .untagged-segments { |
---|
56 | stroke-width: 0.5px; |
---|
57 | stroke-linejoin: miter; |
---|
58 | stroke-linecap: butt; |
---|
59 | stroke: #e0e0e0; |
---|
60 | stroke-dasharray: 0.5,0.5; |
---|
61 | } |
---|
62 | |
---|
63 | .caption-casing { |
---|
64 | fill: white; |
---|
65 | stroke: white; |
---|
66 | font-family: "DejaVu Sans"; |
---|
67 | font-weight: normal; |
---|
68 | text-anchor: middle; |
---|
69 | stroke-miterlimit: 1.5; |
---|
70 | } |
---|
71 | |
---|
72 | .caption-core { |
---|
73 | stroke: white; |
---|
74 | stroke-width: 0px; |
---|
75 | font-family: "DejaVu Sans"; |
---|
76 | font-weight: normal; |
---|
77 | text-anchor: middle; |
---|
78 | stroke-miterlimit: 1.5; |
---|
79 | } |
---|
80 | |
---|
81 | .city-caption-casing { font-size: 2800px; stroke-width: 600px; } |
---|
82 | .city-caption { font-size: 2800px; } |
---|
83 | |
---|
84 | .capital-caption-casing { font-size: 3700px; stroke-width: 500px; } |
---|
85 | .capital-caption { font-size: 3700px; } |
---|
86 | |
---|
87 | /* Non-physical boundaries */ |
---|
88 | .boundary { |
---|
89 | stroke-linecap: round; |
---|
90 | stroke-linejoin: round; |
---|
91 | fill: none; |
---|
92 | } |
---|
93 | |
---|
94 | .boundary-level-1-casing { |
---|
95 | stroke-width: 9000px; |
---|
96 | stroke: #ffff00; |
---|
97 | opacity: 0.5; |
---|
98 | } |
---|
99 | |
---|
100 | .boundary-level-1-core { |
---|
101 | stroke-width: 400px; |
---|
102 | stroke: #f9574b; |
---|
103 | stroke-dasharray: 900, 300, 300, 300; |
---|
104 | } |
---|
105 | |
---|
106 | .boundary-level-2-casing { |
---|
107 | stroke-width: 700px; |
---|
108 | stroke: #ffff00; |
---|
109 | opacity: 0.5; |
---|
110 | } |
---|
111 | |
---|
112 | .boundary-level-2-core { |
---|
113 | stroke-width: 350px; |
---|
114 | stroke: #f9574b; |
---|
115 | stroke-dasharray: 800, 800; |
---|
116 | } |
---|
117 | |
---|
118 | |
---|
119 | |
---|
120 | /* Map decoration */ |
---|
121 | .map-grid-line { |
---|
122 | fill: none; |
---|
123 | stroke: #8080ff; |
---|
124 | stroke-width: 0.1px; |
---|
125 | stroke-opacity: 0.5; |
---|
126 | } |
---|
127 | |
---|
128 | .map-border-casing { |
---|
129 | fill: none; |
---|
130 | stroke: #8080ff; |
---|
131 | stroke-width: 3px; |
---|
132 | stroke-miterlimit: 4; |
---|
133 | stroke-dasharray: none; |
---|
134 | stroke-opacity: 1; |
---|
135 | stroke-linecap: round; |
---|
136 | } |
---|
137 | |
---|
138 | .map-border-core { |
---|
139 | fill: none; |
---|
140 | fill-opacity: 1; |
---|
141 | fill-rule: nonzero; |
---|
142 | stroke: #ffffff; |
---|
143 | stroke-width: 2px; |
---|
144 | stroke-miterlimit: 0; |
---|
145 | stroke-dashoffset: -0.5px; |
---|
146 | stroke-opacity: 1; |
---|
147 | } |
---|
148 | |
---|
149 | .map-scale-casing { |
---|
150 | fill: none; |
---|
151 | stroke: #8080ff; |
---|
152 | stroke-width: 4px; |
---|
153 | stroke-linecap: butt; |
---|
154 | } |
---|
155 | |
---|
156 | .map-scale-core { |
---|
157 | fill: none; |
---|
158 | stroke: #ffffff; |
---|
159 | stroke-width: 3px; |
---|
160 | stroke-linecap: butt; |
---|
161 | } |
---|
162 | |
---|
163 | .map-scale-bookend { |
---|
164 | fill: none; |
---|
165 | stroke: #8080ff; |
---|
166 | stroke-width: 1px; |
---|
167 | stroke-linecap: butt; |
---|
168 | } |
---|
169 | |
---|
170 | .map-scale-caption { |
---|
171 | font-family: "DejaVu Sans",sans-serif; |
---|
172 | font-size: 10px; |
---|
173 | fill: #8080ff; |
---|
174 | } |
---|
175 | |
---|
176 | <!-- map background must be the same for all zooms or else empty tile detection will fail --> |
---|
177 | .map-background { |
---|
178 | fill: #f8f8f8; |
---|
179 | stroke: none; |
---|
180 | } |
---|
181 | |
---|
182 | .map-title { |
---|
183 | font-family: "DejaVu Sans",sans-serif; |
---|
184 | font-size: 20px; |
---|
185 | text-anchor: middle; |
---|
186 | fill: black; |
---|
187 | } |
---|
188 | |
---|
189 | .map-title-background { |
---|
190 | fill: white; |
---|
191 | } |
---|
192 | |
---|
193 | .map-marginalia-background { |
---|
194 | fill: white; |
---|
195 | } |
---|
196 | </style> |
---|
197 | |
---|
198 | </defs> |
---|
199 | |
---|
200 | </rules> |
---|