1 | <!--
|
---|
2 | a little help:
|
---|
3 | 1. every rule starts with <rule> and ends with </rule>
|
---|
4 | 2. every rule needs a condition
|
---|
5 | 3. line attributes
|
---|
6 | - width absolute width in pixel in every zoom level
|
---|
7 | - realwidth relative width which will be scaled in meters, integer
|
---|
8 | - colour
|
---|
9 | 4. area attributes
|
---|
10 | - colour
|
---|
11 | 5. amenity attributes
|
---|
12 | - icon path to icon , relative from where this file is
|
---|
13 | -->
|
---|
14 |
|
---|
15 | <rules>
|
---|
16 | <!-- highway tags -->
|
---|
17 | <rule>
|
---|
18 | <condition k="highway" v="motorway"/>
|
---|
19 | <line width="3" realwidth="8" colour="#809bc0" width_bg="5" colour_bg="#FFFF00"/>
|
---|
20 | <scale_min>1</scale_min>
|
---|
21 | <scale_max>200000000</scale_max>
|
---|
22 | </rule>
|
---|
23 |
|
---|
24 | <rule>
|
---|
25 | <condition k="highway" v="motorway_link"/>
|
---|
26 | <line width="3" colour="#809bc0"/>
|
---|
27 | <scale_min>1</scale_min>
|
---|
28 | <scale_max>50000</scale_max>
|
---|
29 | </rule>
|
---|
30 |
|
---|
31 | <rule>
|
---|
32 | <condition k="highway" v="trunk"/>
|
---|
33 | <line width="3" colour="#7fc97f"/>
|
---|
34 | <scale_min>1</scale_min>
|
---|
35 | <scale_max>20000</scale_max>
|
---|
36 | </rule>
|
---|
37 |
|
---|
38 | <rule>
|
---|
39 | <condition k="highway" v="trunk_link"/>
|
---|
40 | <line width="3" colour="#7fc97f"/>
|
---|
41 | <scale_min>1</scale_min>
|
---|
42 | <scale_max>20000</scale_max>
|
---|
43 | </rule>
|
---|
44 |
|
---|
45 | <rule>
|
---|
46 | <condition k="highway" v="primary"/>
|
---|
47 | <line width="3" realwidth="8" colour="#fb805f"/>
|
---|
48 | <scale_min>1</scale_min>
|
---|
49 | <scale_max>700000</scale_max>
|
---|
50 | </rule>
|
---|
51 |
|
---|
52 | <rule>
|
---|
53 | <condition k="highway" v="primary_link"/>
|
---|
54 | <line width="3" colour="#fb805f"/>
|
---|
55 | <scale_min>1</scale_min>
|
---|
56 | <scale_max>40000</scale_max>
|
---|
57 | </rule>
|
---|
58 |
|
---|
59 | <rule>
|
---|
60 | <condition k="highway" v="secondary"/>
|
---|
61 | <line width="3" realwidth="6" colour="#fdbf6f"/>
|
---|
62 | <scale_min>1</scale_min>
|
---|
63 | <scale_max>300000</scale_max>
|
---|
64 | </rule>
|
---|
65 |
|
---|
66 | <rule>
|
---|
67 | <condition k="highway" v="tertiary"/>
|
---|
68 | <line width="1" colour="#333333"/>
|
---|
69 | <scale_min>1</scale_min>
|
---|
70 | <scale_max>30000</scale_max>
|
---|
71 | </rule>
|
---|
72 |
|
---|
73 | <rule>
|
---|
74 | <condition k="highway" v="unclassified"/>
|
---|
75 | <line width="2" colour="#c0c0c0"/>
|
---|
76 | <scale_min>1</scale_min>
|
---|
77 | <scale_max>40000</scale_max>
|
---|
78 | </rule>
|
---|
79 |
|
---|
80 | <rule>
|
---|
81 | <condition k="highway" v="track"/>
|
---|
82 | <line width="1" colour="#006600"/>
|
---|
83 | <scale_min>1</scale_min>
|
---|
84 | <scale_max>20000</scale_max>
|
---|
85 | </rule>
|
---|
86 |
|
---|
87 | <rule>
|
---|
88 | <condition k="highway" v="residential"/>
|
---|
89 | <line width="2" realwidth="5" colour="#c0c0c0"/>
|
---|
90 | <scale_min>1</scale_min>
|
---|
91 | <scale_max>40000</scale_max>
|
---|
92 | </rule>
|
---|
93 |
|
---|
94 | <rule>
|
---|
95 | <condition k="highway" v="service"/>
|
---|
96 | <line width="1" colour="#809bc0"/>
|
---|
97 | <scale_min>1</scale_min>
|
---|
98 | <scale_max>20000</scale_max>
|
---|
99 | </rule>
|
---|
100 |
|
---|
101 | <rule>
|
---|
102 | <condition k="highway" v="bridleway"/>
|
---|
103 | <line width="1" colour="#c08000" />
|
---|
104 | <scale_min>1</scale_min>
|
---|
105 | <scale_max>30000</scale_max>
|
---|
106 | </rule>
|
---|
107 |
|
---|
108 | <rule>
|
---|
109 | <condition k="highway" v="cycleway"/>
|
---|
110 | <line width="1" realwidth="2" colour="#ff00ff"/>
|
---|
111 | <scale_min>1</scale_min>
|
---|
112 | <scale_max>50000</scale_max>
|
---|
113 | </rule>
|
---|
114 |
|
---|
115 | <rule>
|
---|
116 | <condition k="highway" v="footway"/>
|
---|
117 | <line width="1" realwidth="1" colour="#00ff00" />
|
---|
118 | <scale_min>1</scale_min>
|
---|
119 | <scale_max>10000</scale_max>
|
---|
120 | </rule>
|
---|
121 |
|
---|
122 | <rule>
|
---|
123 | <condition k="highway" v="pedestrian"/>
|
---|
124 | <line width="1" colour="#aaaaaa"/>
|
---|
125 | <scale_min>1</scale_min>
|
---|
126 | <scale_max>10000</scale_max>
|
---|
127 | </rule>
|
---|
128 |
|
---|
129 | <rule>
|
---|
130 | <condition k="highway" v="steps"/>
|
---|
131 | <line width="1" colour="#00ff00"/>
|
---|
132 | <scale_min>1</scale_min>
|
---|
133 | <scale_max>10000</scale_max>
|
---|
134 | </rule>
|
---|
135 |
|
---|
136 | <!-- cycleway tags -->
|
---|
137 |
|
---|
138 | <!-- tracktype tags -->
|
---|
139 |
|
---|
140 | <!--waterway tags -->
|
---|
141 | <rule>
|
---|
142 | <condition k="waterway" v="river"/>
|
---|
143 | <line width="2" realwidth="10" colour="#0000ff" width_bg="3" colour_bg="#00001f"/>
|
---|
144 | <scale_min>1</scale_min>
|
---|
145 | <scale_max>50000</scale_max>
|
---|
146 | </rule>
|
---|
147 |
|
---|
148 | <rule>
|
---|
149 | <condition k="waterway" v="riverbank"/>
|
---|
150 | <line width="1" colour="#00005f" width_bg="1" colour_bg="#00001f"/>
|
---|
151 | <scale_min>1</scale_min>
|
---|
152 | <scale_max>50000</scale_max>
|
---|
153 | </rule>
|
---|
154 |
|
---|
155 | <rule>
|
---|
156 | <condition k="waterway" v="canal"/>
|
---|
157 | <line width="2" colour="#0000ff" width_bg="2" colour_bg="#00001f"/>
|
---|
158 | <scale_min>1</scale_min>
|
---|
159 | <scale_max>50000</scale_max>
|
---|
160 | </rule>
|
---|
161 |
|
---|
162 | <rule>
|
---|
163 | <condition k="waterway" v="drain"/>
|
---|
164 | <line width="1" colour="#0000ff"/>
|
---|
165 | <scale_min>1</scale_min>
|
---|
166 | <scale_max>50000</scale_max>
|
---|
167 | </rule>
|
---|
168 |
|
---|
169 | <rule>
|
---|
170 | <condition k="natural" v="coastline"/>
|
---|
171 | <line width="1" colour="#0000ff"/>
|
---|
172 | <scale_min>1</scale_min>
|
---|
173 | <scale_max>50000</scale_max>
|
---|
174 | </rule>
|
---|
175 |
|
---|
176 | <!-- railway tags -->
|
---|
177 | <rule>
|
---|
178 | <condition k="railway" v="station" />
|
---|
179 | <icon annotate="true" src="station.png" />
|
---|
180 | <scale_min>1</scale_min>
|
---|
181 | <scale_max>50000</scale_max>
|
---|
182 | </rule>
|
---|
183 |
|
---|
184 | <rule>
|
---|
185 | <condition k="railway" v="level_crossing" />
|
---|
186 | <icon annotate="true" src="crossing.png" />
|
---|
187 | </rule>
|
---|
188 |
|
---|
189 | <rule>
|
---|
190 | <condition k="railway" v="rail"/>
|
---|
191 | <line width="2" colour="#808080"/>
|
---|
192 | <scale_min>1</scale_min>
|
---|
193 | <scale_max>50000</scale_max>
|
---|
194 | </rule>
|
---|
195 |
|
---|
196 | <rule>
|
---|
197 | <condition k="railway" v="tram"/>
|
---|
198 | <line width="1" colour="#606060"/>
|
---|
199 | <scale_min>1</scale_min>
|
---|
200 | <scale_max>50000</scale_max>
|
---|
201 | </rule>
|
---|
202 |
|
---|
203 | <rule>
|
---|
204 | <condition k="railway" v="light_rail"/>
|
---|
205 | <line width="2" colour="#808080"/>
|
---|
206 | <scale_min>1</scale_min>
|
---|
207 | <scale_max>50000</scale_max>
|
---|
208 | </rule>
|
---|
209 |
|
---|
210 | <rule>
|
---|
211 | <condition k="railway" v="subway"/>
|
---|
212 | <line width="1" colour="#202020"/>
|
---|
213 | <scale_min>1</scale_min>
|
---|
214 | <scale_max>50000</scale_max>
|
---|
215 | </rule>
|
---|
216 |
|
---|
217 | <!--aeroway tags -->
|
---|
218 |
|
---|
219 | <!--aerialway tags -->
|
---|
220 |
|
---|
221 | <!--power tags -->
|
---|
222 |
|
---|
223 | <!--man_made tags -->
|
---|
224 | <rule>
|
---|
225 | <condition k="man_made" v="mast" />
|
---|
226 | <icon annotate="true" src="mast.png" />
|
---|
227 | </rule>
|
---|
228 |
|
---|
229 | <!--leisure tags -->
|
---|
230 | <rule>
|
---|
231 | <condition k="leisure" v="park"/>
|
---|
232 | <area colour="#c7f1a3"/>
|
---|
233 | <scale_min>1</scale_min>
|
---|
234 | <scale_max>50000</scale_max>
|
---|
235 | </rule>
|
---|
236 |
|
---|
237 | <rule>
|
---|
238 | <condition k="leisure" v="playground"/>
|
---|
239 | <area colour="#c7f1a3"/>
|
---|
240 | <scale_min>1</scale_min>
|
---|
241 | <scale_max>50000</scale_max>
|
---|
242 | </rule>
|
---|
243 |
|
---|
244 | <!--amenity tags -->
|
---|
245 | <rule>
|
---|
246 | <condition k="amenity" v="restaurant" />
|
---|
247 | <icon annotate="true" src="restaurant.png" />
|
---|
248 | <scale_min>1</scale_min>
|
---|
249 | <scale_max>50000</scale_max>
|
---|
250 | </rule>
|
---|
251 |
|
---|
252 | <rule>
|
---|
253 | <condition k="amenity" v="pub" />
|
---|
254 | <icon annotate="true" src="pub.png" />
|
---|
255 | <scale_min>1</scale_min>
|
---|
256 | <scale_max>50000</scale_max>
|
---|
257 | </rule>
|
---|
258 |
|
---|
259 | <rule>
|
---|
260 | <condition k="amenity" v="biergarten" />
|
---|
261 | <icon annotate="true" src="pub.png" />
|
---|
262 | <scale_min>1</scale_min>
|
---|
263 | <scale_max>50000</scale_max>
|
---|
264 | </rule>
|
---|
265 |
|
---|
266 | <rule>
|
---|
267 | <condition k="amenity" v="fast_food" />
|
---|
268 | <icon annotate="true" src="fast_food.png" />
|
---|
269 | <scale_min>1</scale_min>
|
---|
270 | <scale_max>50000</scale_max>
|
---|
271 | </rule>
|
---|
272 |
|
---|
273 | <rule>
|
---|
274 | <condition k="amenity" v="parking" />
|
---|
275 | <icon annotate="true" src="carpark.png" />
|
---|
276 | <scale_min>1</scale_min>
|
---|
277 | <scale_max>50000</scale_max>
|
---|
278 | </rule>
|
---|
279 |
|
---|
280 | <rule>
|
---|
281 | <condition k="amenity" v="place_of_worship" />
|
---|
282 | <icon annotate="true" src="church.png" />
|
---|
283 | <scale_min>1</scale_min>
|
---|
284 | <scale_max>50000</scale_max>
|
---|
285 | </rule>
|
---|
286 |
|
---|
287 | <!--shop tags -->
|
---|
288 |
|
---|
289 | <!--tourism tags -->
|
---|
290 | <rule>
|
---|
291 | <condition k="tourism" v="camp_site" />
|
---|
292 | <icon annotate="true" src="campsite.png" />
|
---|
293 | <scale_min>1</scale_min>
|
---|
294 | <scale_max>50000</scale_max>
|
---|
295 | </rule>
|
---|
296 |
|
---|
297 | <rule>
|
---|
298 | <condition k="tourism" v="viewpoint" />
|
---|
299 | <icon annotate="true" src="viewpoint.png" />
|
---|
300 | <scale_min>1</scale_min>
|
---|
301 | <scale_max>50000</scale_max>
|
---|
302 | </rule>
|
---|
303 |
|
---|
304 | <rule>
|
---|
305 | <condition k="tourism" v="attraction"/>
|
---|
306 | <icon annotate="true" src="interest.png"/>
|
---|
307 | <scale_min>1</scale_min>
|
---|
308 | <scale_max>50000</scale_max>
|
---|
309 | </rule>
|
---|
310 |
|
---|
311 | <!--historic tags -->
|
---|
312 |
|
---|
313 | <!--landuse tags -->
|
---|
314 | <rule>
|
---|
315 | <condition k="landuse" v="farm" />
|
---|
316 | <icon annotate="true" src="farm.png" />
|
---|
317 | </rule>
|
---|
318 |
|
---|
319 | <rule>
|
---|
320 | <condition k="landuse" v="forest"/>
|
---|
321 | <area colour="#b1efc8" />
|
---|
322 | <scale_min>1</scale_min>
|
---|
323 | <scale_max>50000</scale_max>
|
---|
324 | </rule>
|
---|
325 |
|
---|
326 | <rule>
|
---|
327 | <condition k="landuse" v="cemetery"/>
|
---|
328 | <line width="1" colour="#bde3cb"/>
|
---|
329 | </rule>
|
---|
330 |
|
---|
331 | <rule>
|
---|
332 | <condition k="landuse" v="residential"/>
|
---|
333 | <area colour="#f0f0f0"/>
|
---|
334 | </rule>
|
---|
335 |
|
---|
336 | <rule>
|
---|
337 | <condition k="landuse" v="industrial"/>
|
---|
338 | <area colour="#ecd8ff"/>
|
---|
339 | </rule>
|
---|
340 |
|
---|
341 | <!--military tags -->
|
---|
342 | <rule>
|
---|
343 | <condition k="military" v="danger_area" />
|
---|
344 | <area colour="#b62c2c"/>
|
---|
345 | </rule>
|
---|
346 |
|
---|
347 | <!--natural tags -->
|
---|
348 | <rule>
|
---|
349 | <condition k="natural" v="peak"/>
|
---|
350 | <icon annotate="true" src="peak_small.png"
|
---|
351 | <scale_min>1</scale_min>
|
---|
352 | <scale_max>50000</scale_max>
|
---|
353 | </rule>
|
---|
354 |
|
---|
355 | <rule>
|
---|
356 | <condition k="natural" v="fell"/>
|
---|
357 | <area colour="#002f00"/>
|
---|
358 | <scale_min>1</scale_min>
|
---|
359 | <scale_max>50000</scale_max>
|
---|
360 | </rule>
|
---|
361 |
|
---|
362 | <rule>
|
---|
363 | <condition k="natural" v="heath"/>
|
---|
364 | <area colour="#ffffc0"/>
|
---|
365 | <scale_min>1</scale_min>
|
---|
366 | <scale_max>50000</scale_max>
|
---|
367 | </rule>
|
---|
368 |
|
---|
369 | <rule>
|
---|
370 | <condition k="natural" v="water"/>
|
---|
371 | <area colour="#0000ff"/>
|
---|
372 | <scale_min>1</scale_min>
|
---|
373 | <scale_max>50000</scale_max>
|
---|
374 | </rule>
|
---|
375 |
|
---|
376 | <rule>
|
---|
377 | <condition k="natural" v="coastline"/>
|
---|
378 | <line width="1" colour="#0000ff"/>
|
---|
379 | <scale_min>1</scale_min>
|
---|
380 | <scale_max>50000</scale_max>
|
---|
381 | </rule>
|
---|
382 |
|
---|
383 | <!--route tags -->
|
---|
384 |
|
---|
385 | <!--boundary tags -->
|
---|
386 |
|
---|
387 | <!--sport tags -->
|
---|
388 | <rule>
|
---|
389 | <condition k="sport" v="soccer" />
|
---|
390 | <area colour="#bde3cb"/>
|
---|
391 | <scale_min>1</scale_min>
|
---|
392 | <scale_max>50000</scale_max>
|
---|
393 | </rule>
|
---|
394 |
|
---|
395 | <!--abutters tags -->
|
---|
396 |
|
---|
397 | <!--accessories tags -->
|
---|
398 |
|
---|
399 | <!--properties tags -->
|
---|
400 |
|
---|
401 | <!--restrictions tags -->
|
---|
402 |
|
---|
403 | <!--name tags -->
|
---|
404 |
|
---|
405 | <!--preferences tags -->
|
---|
406 |
|
---|
407 | <!--place tags -->
|
---|
408 | <rule>
|
---|
409 | <condition k="place" v="city" />
|
---|
410 | <icon annotate="true" src="place.png" />
|
---|
411 | <scale_min>1</scale_min>
|
---|
412 | <scale_max>50000</scale_max>
|
---|
413 | </rule>
|
---|
414 |
|
---|
415 | <rule>
|
---|
416 | <condition k="place" v="town" />
|
---|
417 | <icon annotate="true" src="place.png" />
|
---|
418 | <scale_min>1</scale_min>
|
---|
419 | <scale_max>50000</scale_max>
|
---|
420 | </rule>
|
---|
421 |
|
---|
422 | <rule>
|
---|
423 | <condition k="place" v="village" />
|
---|
424 | <icon annotate="true" src="place.png" />
|
---|
425 | <scale_min>1</scale_min>
|
---|
426 | <scale_max>50000</scale_max>
|
---|
427 | </rule>
|
---|
428 |
|
---|
429 | <rule>
|
---|
430 | <condition k="place" v="hamlet" />
|
---|
431 | <icon annotate="true" src="place.png" />
|
---|
432 | <scale_min>1</scale_min>
|
---|
433 | <scale_max>50000</scale_max>
|
---|
434 | </rule>
|
---|
435 |
|
---|
436 | <rule>
|
---|
437 | <condition k="place" v="suburb" />
|
---|
438 | <icon annotate="true" src="place.png" />
|
---|
439 | <scale_min>1</scale_min>
|
---|
440 | <scale_max>50000</scale_max>
|
---|
441 | </rule>
|
---|
442 |
|
---|
443 | <!--annotation tags -->
|
---|
444 |
|
---|
445 | </rules>
|
---|