source: josm/trunk/styles/maxspeed/elemstyles.xml@ 2393

Last change on this file since 2393 was 2091, checked in by ulfl, 15 years ago

an alternative maxspeed style that's lingering around a long time on my harddrive ...

File size: 10.5 KB
Line 
1
2<rules>
3
4 <rule>
5 <condition k="maxspeed" v="5"/>
6 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
7 <icon src="vehicle/restrictions/speed.png" priority="10000" />
8 </rule>
9
10 <rule>
11 <condition k="maxspeed" v="7"/>
12 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
13 <icon src="vehicle/restrictions/speed.png" priority="10000" />
14 </rule>
15
16 <rule>
17 <condition k="maxspeed" v="8"/>
18 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
19 <icon src="vehicle/restrictions/speed.png" priority="10000" />
20 </rule>
21
22 <rule>
23 <condition k="maxspeed" v="10"/>
24 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
25 <icon src="vehicle/restrictions/speed.png" priority="10000" />
26 </rule>
27
28 <rule>
29 <condition k="maxspeed" v="15"/>
30 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
31 <icon src="vehicle/restrictions/speed.png" priority="10000" />
32 </rule>
33
34 <rule>
35 <condition k="maxspeed" v="20"/>
36 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
37 <icon src="vehicle/restrictions/speed.png" priority="10000" />
38 </rule>
39
40 <rule>
41 <condition k="maxspeed" v="30"/>
42 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
43 <icon src="vehicle/restrictions/speed.png" priority="10000" />
44 </rule>
45
46 <rule>
47 <condition k="maxspeed" v="40"/>
48 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
49 <icon src="vehicle/restrictions/speed.png" priority="10000" />
50 </rule>
51
52 <rule>
53 <condition k="maxspeed" v="50"/>
54 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
55 <icon src="vehicle/restrictions/speed.png" priority="10000" />
56 </rule>
57
58 <rule>
59 <condition k="maxspeed" v="60"/>
60 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
61 <icon src="vehicle/restrictions/speed.png" priority="10000" />
62 </rule>
63
64 <rule>
65 <condition k="maxspeed" v="70"/>
66 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
67 <icon src="vehicle/restrictions/speed.png" priority="10000" />
68 </rule>
69
70 <rule>
71 <condition k="maxspeed" v="80"/>
72 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
73 <icon src="vehicle/restrictions/speed.png" priority="10000" />
74 </rule>
75
76 <rule>
77 <condition k="maxspeed" v="100"/>
78 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
79 <icon src="vehicle/restrictions/speed.png" priority="10000" />
80 </rule>
81
82 <rule>
83 <condition k="maxspeed" v="120"/>
84 <linemod mode="under" width="+4" colour="#40ff40" priority="10000" />
85 <icon src="vehicle/restrictions/speed.png" priority="10000" />
86 </rule>
87
88 <rule>
89 <!-- electronic traffic signs -->
90 <condition k="maxspeed" v="variable"/>
91 <linemod mode="under" dashed="yes" width="+4" colour="#40ff40" priority="10000" />
92 <icon src="vehicle/restrictions/speed.png" priority="10000" />
93 </rule>
94
95 <rule>
96 <condition k="maxspeed" v="walk"/>
97 <linemod mode="under" dashed="yes" width="+4" colour="#40ff40" priority="10000" />
98 <icon src="vehicle/restrictions/speed.png" priority="10000" />
99 </rule>
100
101 <rule>
102 <condition k="maxspeed" v="default"/>
103 <linemod mode="under" dashed="yes" width="+4" colour="#40ff40" priority="10000" />
104 <icon src="vehicle/restrictions/speed.png" priority="10000" />
105 </rule>
106
107 <rule>
108 <!-- default for unknown maxspeed -->
109 <condition k="maxspeed"/>
110 <line width="20" colour="#ffd0d0" priority="8000" />
111 <icon src="vehicle/restrictions/speed.png" priority="8000" />
112 </rule>
113
114
115
116 <rule>
117 <condition k="highway" v="motorway" />
118 <line width="3" colour="motorway#809bc0" priority="9000" />
119 <icon annotate="false" priority="-9000" />
120 </rule>
121 <rule>
122 <condition k="highway" v="motorway_link" />
123 <line width="3" colour="motorway#809bc0" priority="9000" />
124 <icon annotate="false" priority="-9000" />
125 </rule>
126
127 <rule>
128 <condition k="highway" v="trunk" />
129 <line width="3" colour="trunk#7fc97f" priority="9000" />
130 <icon annotate="false" priority="-9000" />
131 </rule>
132 <rule>
133 <condition k="highway" v="trunk_link" />
134 <line width="3" colour="trunk#7fc97f" priority="9000" />
135 <icon annotate="false" priority="-9000" />
136 </rule>
137
138 <rule>
139 <condition k="highway" v="primary" />
140 <line width="3" realwidth="8" colour="primary#fb805f" priority="9000" />
141 <icon annotate="false" priority="-9000" />
142 </rule>
143 <rule>
144 <condition k="highway" v="primary_link" />
145 <line width="3" realwidth="8" colour="primary#fb805f" priority="9000" />
146 <icon annotate="false" priority="-9000" />
147 </rule>
148
149 <rule>
150 <condition k="highway" v="secondary" />
151 <line width="3" realwidth="6" colour="secondary#fdbf6f" priority="9000"/>
152 <icon annotate="false" priority="-9000" />
153 </rule>
154 <rule>
155 <condition k="highway" v="secondary_link" />
156 <line width="3" realwidth="6" colour="secondary#fdbf6f" priority="9000"/>
157 <icon annotate="false" priority="-9000" />
158 </rule>
159
160 <rule>
161 <condition k="highway" v="tertiary" />
162 <line width="2" realwidth="5" colour="tertiary#f7f496" priority="9000" />
163 <icon annotate="false" priority="-9000" />
164 </rule>
165
166 <rule>
167 <condition k="highway" v="residential" />
168 <line width="2" realwidth="5" colour="street#c0c0c0" priority="9000" />
169 <icon annotate="false" priority="-9000" />
170 </rule>
171
172 <rule>
173 <condition k="highway" v="unclassified" />
174 <line width="2" realwidth="5" colour="street#c0c0c0" priority="9000" />
175 <icon annotate="false" priority="-9000" />
176 </rule>
177
178 <rule>
179 <condition k="highway" v="road" />
180 <line width="2" realwidth="5" dashed="true" colour="deprecated#ff0000" priority="9000" />
181 <icon annotate="false" priority="-9000" />
182 </rule>
183
184 <rule>
185 <condition k="highway" v="service" />
186 <line width="1" realwidth="3" colour="service#809bc0" priority="9000" />
187 <icon annotate="false" priority="-9000" />
188 </rule>
189
190 <rule>
191 <condition k="highway" v="turning_circle" />
192 <line width="3" colour="#d0d0d0" priority="9000" />
193 <icon annotate="false" priority="-9000" />
194 </rule>
195
196 <rule>
197 <condition k="highway" v="track" />
198 <line width="1" realwidth="3" colour="track#006600" priority="9000"/>
199 <icon annotate="false" priority="-9000" />
200 </rule>
201
202 <rule>
203 <condition k="highway" v="living_street" />
204 <line width="1" realwidth="3" colour="street#c0c0c0" priority="9000"/>
205 <icon annotate="false" priority="-9000" />
206 </rule>
207
208
209 <!-- highway not suitable for maxspeed? -->
210 <rule>
211 <condition k="highway" v="pedestrian" />
212 <line width="0" colour="#303030" priority="9000" />
213 <icon annotate="false" priority="-9000" />
214 </rule>
215
216 <rule>
217 <condition k="highway" v="footway" />
218 <line width="0" colour="#303030" priority="9000" />
219 <icon annotate="false" priority="-9000" />
220 </rule>
221
222 <rule>
223 <condition k="highway" v="bridleway" />
224 <line width="0" colour="#303030" priority="9000" />
225 <icon annotate="false" priority="-9000" />
226 </rule>
227
228 <rule>
229 <condition k="highway" v="path" />
230 <line width="0" colour="#303030" priority="9000" />
231 <icon annotate="false" priority="-9000" />
232 </rule>
233
234 <rule>
235 <condition k="highway" v="steps" />
236 <line width="0" colour="#303030" priority="9000" />
237 <icon annotate="false" priority="-9000" />
238 </rule>
239
240 <rule>
241 <condition k="highway" v="cycleway" />
242 <line width="0" colour="#303030" priority="9000" />
243 <icon annotate="false" priority="-9000" />
244 </rule>
245
246 <rule>
247 <condition k="highway" v="construction" />
248 <line width="0" colour="#303030" priority="9000" />
249 <icon annotate="false" priority="-9000" />
250 </rule>
251
252 <rule>
253 <condition k="highway"/>
254 <line width="20" colour="#d0d0d0" priority="-100" />
255 <icon annotate="false" priority="-10000" />
256 </rule>
257
258
259 <rule>
260 <condition k="amenity"/>
261 <line width="0" colour="#252525" priority="-10000" />
262 <icon annotate="false" priority="-10000" />
263 </rule>
264 <rule>
265 <condition k="shop"/>
266 <line width="0" colour="#252525" priority="-10000" />
267 <icon annotate="false" priority="-10000" />
268 </rule>
269 <rule>
270 <condition k="place"/>
271 <line width="0" colour="#252525" priority="-10000" />
272 <icon annotate="false" priority="-10000" />
273 </rule>
274 <rule>
275 <condition k="tourism"/>
276 <line width="0" colour="#252525" priority="-10000" />
277 <icon annotate="false" priority="-10000" />
278 </rule>
279 <rule>
280 <condition k="railway"/>
281 <line width="0" colour="#252525" priority="-10000" />
282 <icon annotate="false" priority="-10000" />
283 </rule>
284 <rule>
285 <condition k="natural"/>
286 <line width="0" colour="#252525" priority="-10000" />
287 <icon annotate="false" priority="-10000" />
288 </rule>
289 <rule>
290 <condition k="historic"/>
291 <line width="0" colour="#252525" priority="-10000" />
292 <icon annotate="false" priority="-10000" />
293 </rule>
294 <rule>
295 <condition k="man_made"/>
296 <line width="0" colour="#252525" priority="-10000" />
297 <icon annotate="false" priority="-10000" />
298 </rule>
299 <rule>
300 <condition k="leisure"/>
301 <line width="0" colour="#252525" priority="-10000" />
302 <icon annotate="false" priority="-10000" />
303 </rule>
304 <rule>
305 <condition k="sport"/>
306 <line width="0" colour="#252525" priority="-10000" />
307 <icon annotate="false" priority="-10000" />
308 </rule>
309 <rule>
310 <condition k="aeroway"/>
311 <line width="0" colour="#252525" priority="-10000" />
312 <icon annotate="false" priority="-10000" />
313 </rule>
314 <rule>
315 <condition k="power"/>
316 <line width="0" colour="#252525" priority="-10000" />
317 <icon annotate="false" priority="-10000" />
318 </rule>
319 <rule>
320 <condition k="landuse"/>
321 <line width="0" colour="#252525" priority="-10000" />
322 <icon annotate="false" priority="-10000" />
323 </rule>
324 <rule>
325 <condition k="cemetery" v="grave"/>
326 <line width="0" colour="#252525" priority="-10000" />
327 <icon annotate="false" priority="-10000" />
328 </rule>
329 <rule>
330 <condition k="building"/>
331 <line width="0" colour="#252525" priority="-10000" />
332 <icon annotate="false" priority="-10000" />
333 </rule>
334 <rule>
335 <condition k="barrier"/>
336 <line width="0" colour="#252525" priority="-10000" />
337 <icon annotate="false" priority="-10000" />
338 </rule>
339 <rule>
340 <condition k="waterway"/>
341 <line width="0" colour="#252525" priority="-10000" />
342 <icon annotate="false" priority="-10000" />
343 </rule>
344 <rule>
345 <condition k="boundary"/>
346 <line width="0" colour="#252525" priority="-10000" />
347 <icon annotate="false" priority="-10000" />
348 </rule>
349 <rule>
350 <condition k="addr:housenumber"/>
351 <line width="0" colour="#252525" priority="-10000" />
352 <icon annotate="false" priority="-10000" />
353 </rule>
354
355
356 <rule>
357 <condition k="highway" v="speed_camera"/>
358 <icon annotate="true" src="vehicle/restrictions/speed_trap.png"/>
359 </rule>
360
361</rules>
Note: See TracBrowser for help on using the repository browser.