| 4 | | #!style |
| 5 | | <?xml version="1.0" encoding="UTF-8"?> |
| 6 | | <rules xmlns="http://josm.openstreetmap.de/mappaint-style-1.0" |
| 7 | | author="Martin Koppenhoefer" |
| 8 | | shortdescription="Speedlimit Signs" |
| 9 | | de.shortdescription="Geschwindigkeitsbegrenzungszeichen" |
| 10 | | it.shortdescription="Segnaletica limiti di velocità" |
| 11 | | description="Display maxspeed on nodes by Speedlimit signs." |
| 12 | | de.description="Anzeige der Höchstgeschwindigkeit auf Punkten mittels Geschwindigkeitsbegrenzungszeichen." |
| 13 | | it.description="Mostra la segnaletica per limiti di velocità (su nodi)" |
| 14 | | version="2.[[revision]]_[[date]]"> |
| | 4 | #!style type="mapcss" |
| | 5 | meta { |
| | 6 | title: "Speedlimit Signs"; |
| | 7 | version: "3.[[revision]]_[[date]]"; |
| | 8 | description: "Display maxspeed on nodes by Speedlimit signs."; |
| | 9 | author: "Martin Koppenhoefer"; |
| | 10 | } |
| 16 | | <!-- Rules to display icons on nodes. Suggested tagging (additionally to setting the restriction on the highway): |
| 17 | | traffic_sign=maxspeed |
| 18 | | maxspeed=<restriction in km/h on the sign> |
| 19 | | PLEASE NOTE: maxspeed=7 is mapped on 5 and maxspeed=8 is mapped on 10 |
| 20 | | --> |
| 21 | | <rule> |
| 22 | | <condition k="maxspeed" v="5"/> |
| 23 | | <icon src="vehicle/restrictions/speed5.png" priority="10000" /> |
| 24 | | </rule> |
| 25 | | <rule> |
| 26 | | <condition k="maxspeed" v="5 mph"/> |
| 27 | | <icon src="vehicle/restrictions/speed5.png" priority="10000" /> |
| 28 | | </rule> |
| 29 | | <rule> |
| 30 | | <condition k="traffic_sign" v="DE:274:5"/> |
| 31 | | <icon src="vehicle/restrictions/speed5.png" priority="10000" /> |
| 32 | | </rule> |
| 33 | | <rule> |
| 34 | | <condition k="maxspeed" v="7"/> |
| 35 | | <icon src="vehicle/restrictions/speed5.png" priority="10000" /> |
| 36 | | </rule> |
| 37 | | |
| 38 | | <rule> |
| 39 | | <condition k="maxspeed" v="8"/> |
| 40 | | <icon src="vehicle/restrictions/speed10.png" priority="10000" /> |
| 41 | | </rule> |
| 42 | | |
| 43 | | <rule> |
| 44 | | <condition k="maxspeed" v="10"/> |
| 45 | | <icon src="vehicle/restrictions/speed10.png" priority="10000" /> |
| 46 | | </rule> |
| 47 | | <rule> |
| 48 | | <condition k="maxspeed" v="10 mph"/> |
| 49 | | <icon src="vehicle/restrictions/speed10.png" priority="10000" /> |
| 50 | | </rule> |
| 51 | | <rule> |
| 52 | | <condition k="traffic_sign" v="DE:274:10"/> |
| 53 | | <icon src="vehicle/restrictions/speed10.png" priority="10000" /> |
| 54 | | </rule> |
| 55 | | |
| 56 | | <rule> |
| 57 | | <condition k="maxspeed" v="15"/> |
| 58 | | <icon src="vehicle/restrictions/speed15.png" priority="10000" /> |
| 59 | | </rule> |
| 60 | | <rule> |
| 61 | | <condition k="maxspeed" v="15 mph"/> |
| 62 | | <icon src="vehicle/restrictions/speed15.png" priority="10000" /> |
| 63 | | </rule> |
| 64 | | |
| 65 | | <rule> |
| 66 | | <condition k="maxspeed" v="20"/> |
| 67 | | <icon src="vehicle/restrictions/speed20.png" priority="10000" /> |
| 68 | | </rule> |
| 69 | | <rule> |
| 70 | | <condition k="maxspeed" v="20 mph"/> |
| 71 | | <icon src="vehicle/restrictions/speed20.png" priority="10000" /> |
| 72 | | </rule> |
| 73 | | <rule> |
| 74 | | <condition k="traffic_sign" v="DE:274:20"/> |
| 75 | | <icon src="vehicle/restrictions/speed20.png" priority="10000" /> |
| 76 | | </rule> |
| 77 | | |
| 78 | | <rule> |
| 79 | | <condition k="maxspeed" v="25"/> |
| 80 | | <icon src="vehicle/restrictions/speed25.png" priority="10000" /> |
| 81 | | </rule> |
| 82 | | <rule> |
| 83 | | <condition k="maxspeed" v="25 mph"/> |
| 84 | | <icon src="vehicle/restrictions/speed25.png" priority="10000" /> |
| 85 | | </rule> |
| 86 | | |
| 87 | | <rule> |
| 88 | | <condition k="maxspeed" v="30"/> |
| 89 | | <icon src="vehicle/restrictions/speed30.png" priority="10000" /> |
| 90 | | </rule> |
| 91 | | <rule> |
| 92 | | <condition k="maxspeed" v="30 mph"/> |
| 93 | | <icon src="vehicle/restrictions/speed30.png" priority="10000" /> |
| 94 | | </rule> |
| 95 | | <rule> |
| 96 | | <condition k="traffic_sign" v="DE:274:30"/> |
| 97 | | <icon src="vehicle/restrictions/speed30.png" priority="10000" /> |
| 98 | | </rule> |
| 99 | | |
| 100 | | <rule> |
| 101 | | <condition k="maxspeed" v="35 mph"/> |
| 102 | | <icon src="vehicle/restrictions/speed35.png" priority="10000" /> |
| 103 | | </rule> |
| 104 | | |
| 105 | | <rule> |
| 106 | | <condition k="maxspeed" v="40"/> |
| 107 | | <icon src="vehicle/restrictions/speed40.png" priority="10000" /> |
| 108 | | </rule> |
| 109 | | <rule> |
| 110 | | <condition k="maxspeed" v="40 mph"/> |
| 111 | | <icon src="vehicle/restrictions/speed40.png" priority="10000" /> |
| 112 | | </rule> |
| 113 | | <rule> |
| 114 | | <condition k="traffic_sign" v="DE:274:40"/> |
| 115 | | <icon src="vehicle/restrictions/speed40.png" priority="10000" /> |
| 116 | | </rule> |
| 117 | | |
| 118 | | <rule> |
| 119 | | <condition k="maxspeed" v="45 mph"/> |
| 120 | | <icon src="vehicle/restrictions/speed45.png" priority="10000" /> |
| 121 | | </rule> |
| 122 | | |
| 123 | | <rule> |
| 124 | | <condition k="maxspeed" v="50"/> |
| 125 | | <icon src="vehicle/restrictions/speed50.png" priority="10000" /> |
| 126 | | </rule> |
| 127 | | <rule> |
| 128 | | <condition k="maxspeed" v="50 mph"/> |
| 129 | | <icon src="vehicle/restrictions/speed50.png" priority="10000" /> |
| 130 | | </rule> |
| 131 | | <rule> |
| 132 | | <condition k="traffic_sign" v="DE:274:50"/> |
| 133 | | <icon src="vehicle/restrictions/speed50.png" priority="10000" /> |
| 134 | | </rule> |
| 135 | | |
| 136 | | <rule> |
| 137 | | <condition k="maxspeed" v="55 mph"/> |
| 138 | | <icon src="vehicle/restrictions/speed55.png" priority="10000" /> |
| 139 | | </rule> |
| | 12 | meta[lang=de] { |
| | 13 | title: "Geschwindigkeitsbegrenzungszeichen"; |
| | 14 | description: "Anzeige der Höchstgeschwindigkeit auf Punkten mittels Geschwindigkeitsbegrenzungszeichen."; |
| | 15 | } |
| 141 | | <rule> |
| 142 | | <condition k="maxspeed" v="60"/> |
| 143 | | <icon src="vehicle/restrictions/speed60.png" priority="10000" /> |
| 144 | | </rule> |
| 145 | | <rule> |
| 146 | | <condition k="maxspeed" v="60 mph"/> |
| 147 | | <icon src="vehicle/restrictions/speed60.png" priority="10000" /> |
| 148 | | </rule> |
| 149 | | <rule> |
| 150 | | <condition k="traffic_sign" v="DE:274:60"/> |
| 151 | | <icon src="vehicle/restrictions/speed60.png" priority="10000" /> |
| 152 | | </rule> |
| 153 | | |
| 154 | | <rule> |
| 155 | | <condition k="maxspeed" v="65 mph"/> |
| 156 | | <icon src="vehicle/restrictions/speed65.png" priority="10000" /> |
| 157 | | </rule> |
| 158 | | |
| 159 | | <rule> |
| 160 | | <condition k="maxspeed" v="70"/> |
| 161 | | <icon src="vehicle/restrictions/speed70.png" priority="10000" /> |
| 162 | | </rule> |
| 163 | | <rule> |
| 164 | | <condition k="maxspeed" v="70 mph"/> |
| 165 | | <icon src="vehicle/restrictions/speed70.png" priority="10000" /> |
| 166 | | </rule> |
| 167 | | <rule> |
| 168 | | <condition k="traffic_sign" v="DE:274:70"/> |
| 169 | | <icon src="vehicle/restrictions/speed70.png" priority="10000" /> |
| 170 | | </rule> |
| 171 | | |
| 172 | | <rule> |
| 173 | | <condition k="maxspeed" v="75 mph"/> |
| 174 | | <icon src="vehicle/restrictions/speed75.png" priority="10000" /> |
| 175 | | </rule> |
| | 17 | meta[lang=it] { |
| | 18 | title: "Segnaletica limiti di velocità"; |
| | 19 | description: "Mostra la segnaletica per limiti di velocità (su nodi)"; |
| | 20 | } |
| 262 | | <!-- default icon for all other maxspeed values --> |
| 263 | | <rule> |
| 264 | | <condition k="maxspeed"/> |
| 265 | | <icon src="vehicle/restrictions/speed_blank.png" priority="9000" /> |
| 266 | | </rule> |
| 267 | | </rules> |
| | 62 | node[maxspeed="40"], node[maxspeed="40 mph"], node[traffic_sign="DE:274:40"] { |
| | 63 | icon-image:"vehicle/restrictions/speed40.png"; |
| | 64 | } |
| | 65 | |
| | 66 | node[maxspeed="45"], node[maxspeed="45 mph"] { |
| | 67 | icon-image:"vehicle/restrictions/speed45.png"; |
| | 68 | } |
| | 69 | |
| | 70 | node[maxspeed="50"], node[maxspeed="50 mph"], node[traffic_sign="DE:274:50"] { |
| | 71 | icon-image:"vehicle/restrictions/speed50.png"; |
| | 72 | } |
| | 73 | |
| | 74 | node[maxspeed="55"], node[maxspeed="55 mph"] { |
| | 75 | icon-image:"vehicle/restrictions/speed55.png"; |
| | 76 | } |
| | 77 | |
| | 78 | node[maxspeed="60"], node[maxspeed="60 mph"], node[traffic_sign="DE:274:60"] { |
| | 79 | icon-image:"vehicle/restrictions/speed60.png"; |
| | 80 | } |
| | 81 | |
| | 82 | node[maxspeed="65"], node[maxspeed="65 mph"] { |
| | 83 | icon-image:"vehicle/restrictions/speed65.png"; |
| | 84 | } |
| | 85 | |
| | 86 | node[maxspeed="70"], node[maxspeed="70 mph"], node[traffic_sign="DE:274:70"] { |
| | 87 | icon-image:"vehicle/restrictions/speed70.png"; |
| | 88 | } |
| | 89 | |
| | 90 | node[maxspeed="75"], node[maxspeed="75 mph"] { |
| | 91 | icon-image:"vehicle/restrictions/speed75.png"; |
| | 92 | } |
| | 93 | |
| | 94 | node[maxspeed="80"], node[maxspeed="80 mph"], node[traffic_sign="DE:274:80"] { |
| | 95 | icon-image:"vehicle/restrictions/speed80.png"; |
| | 96 | } |
| | 97 | |
| | 98 | node[maxspeed="90"], node[traffic_sign="DE:274:90"] { |
| | 99 | icon-image:"vehicle/restrictions/speed90.png"; |
| | 100 | } |
| | 101 | |
| | 102 | node[maxspeed="100"], node[traffic_sign="DE:274:100"] { |
| | 103 | icon-image:"vehicle/restrictions/speed100.png"; |
| | 104 | } |
| | 105 | |
| | 106 | node[maxspeed="110"], node[traffic_sign="DE:274:110"] { |
| | 107 | icon-image:"vehicle/restrictions/speed110.png"; |
| | 108 | } |
| | 109 | |
| | 110 | node[maxspeed="120"], node[traffic_sign="DE:274:120"] { |
| | 111 | icon-image:"vehicle/restrictions/speed120.png"; |
| | 112 | } |
| | 113 | |
| | 114 | node[maxspeed="130"], node[traffic_sign="DE:274:130"] { |
| | 115 | icon-image:"vehicle/restrictions/speed130.png"; |
| | 116 | } |
| | 117 | |
| | 118 | /* speed limit zones */ |
| | 119 | |
| | 120 | node[maxspeed="zone:30"][traffic_sign], node[traffic_sign="DE:274.1:30"], node[traffic_sign="DE:274.1[30]"] { |
| | 121 | icon-image:"vehicle/restrictions/zone30.png"; |
| | 122 | } |
| | 123 | |
| | 124 | /* variable speed limits */ |
| | 125 | |
| | 126 | node[maxspeed="variable"] { |
| | 127 | icon-image:"vehicle/restrictions/speed_blank.png"; |
| | 128 | } |
| | 129 | |
| | 130 | node[maxspeed="walk"] { |
| | 131 | icon-image:"vehicle/restrictions/speed5.png"; |
| | 132 | } |
| | 133 | |
| | 134 | node[maxspeed="default"], node[traffic_sign="DE:282"] { |
| | 135 | icon-image:"vehicle/restrictions/speed_no.png"; |
| | 136 | } |