Changes between Version 24 and Version 25 of Styles/Maxspeed
- Timestamp:
- 2015-10-19T21:27:56+02:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/Maxspeed
v24 v25 78 78 79 79 /* display maxspeed=* */ 80 way["maxspeed"="none"]::maxspeed 80 way["maxspeed"="none"]::maxspeedlayer 81 81 { 82 82 set maxspeed; … … 84 84 } 85 85 /* km/h */ 86 way["maxspeed"="5"]::maxspeed 86 way["maxspeed"="5"]::maxspeedlayer 87 87 { 88 88 set maxspeed; 89 89 color: speed_5#ff5656; 90 90 } 91 way["maxspeed"="10"]::maxspeed 91 way["maxspeed"="10"]::maxspeedlayer 92 92 { 93 93 set maxspeed; 94 94 color: speed_10#b80022; 95 95 } 96 way["maxspeed"="15"]::maxspeed 96 way["maxspeed"="15"]::maxspeedlayer 97 97 { 98 98 set maxspeed; 99 99 color: speed_15#00da8b; 100 100 } 101 way["maxspeed"="20"]::maxspeed, 102 way["maxspeed"="RU:living_street"][setting("RU")]::maxspeed 101 way["maxspeed"="20"]::maxspeedlayer, 102 way["maxspeed"="RU:living_street"][setting("RU")]::maxspeedlayer 103 103 { 104 104 set maxspeed; 105 105 color: speed_20#e3cc82; 106 106 } 107 way["maxspeed"="30"]::maxspeed 107 way["maxspeed"="30"]::maxspeedlayer 108 108 { 109 109 set maxspeed; 110 110 color: speed_30#4d4dff; 111 111 } 112 way["maxspeed"="40"]::maxspeed 112 way["maxspeed"="40"]::maxspeedlayer 113 113 { 114 114 set maxspeed; 115 115 color: speed_40#4d4d00; 116 116 } 117 way["maxspeed"="45"]::maxspeed 117 way["maxspeed"="45"]::maxspeedlayer 118 118 { 119 119 set maxspeed; 120 120 color: speed_45#ff529a; 121 121 } 122 way["maxspeed"="50"]::maxspeed 122 way["maxspeed"="50"]::maxspeedlayer 123 123 { 124 124 set maxspeed; 125 125 color: speed_50#07f807; 126 126 } 127 way["maxspeed"="60"]::maxspeed, 128 way["maxspeed"="RU:urban"][setting("RU")]::maxspeed 127 way["maxspeed"="60"]::maxspeedlayer, 128 way["maxspeed"="RU:urban"][setting("RU")]::maxspeedlayer 129 129 { 130 130 set maxspeed; 131 131 color: speed_60#9f9fff; 132 132 } 133 way["maxspeed"="70"]::maxspeed 133 way["maxspeed"="70"]::maxspeedlayer 134 134 { 135 135 set maxspeed; 136 136 color: speed_70#ee8b00; 137 137 } 138 way["maxspeed"="80"]::maxspeed 138 way["maxspeed"="80"]::maxspeedlayer 139 139 { 140 140 set maxspeed; 141 141 color: speed_80#f90808; 142 142 } 143 way["maxspeed"="90"]::maxspeed, 144 way["maxspeed"="RU:rural"][setting("RU")]::maxspeed 143 way["maxspeed"="90"]::maxspeedlayer, 144 way["maxspeed"="RU:rural"][setting("RU")]::maxspeedlayer 145 145 { 146 146 set maxspeed; 147 147 color: speed_90#07f8f8; 148 148 } 149 way["maxspeed"="100"]::maxspeed 149 way["maxspeed"="100"]::maxspeedlayer 150 150 { 151 151 set maxspeed; 152 152 color: speed_100#f807f8; 153 153 } 154 way["maxspeed"="110"]::maxspeed, 155 way["maxspeed"="RU:motorway"][setting("RU")]::maxspeed 154 way["maxspeed"="110"]::maxspeedlayer, 155 way["maxspeed"="RU:motorway"][setting("RU")]::maxspeedlayer 156 156 { 157 157 set maxspeed; 158 158 color: speed_110#7807f8; 159 159 } 160 way["maxspeed"="120"]::maxspeed 160 way["maxspeed"="120"]::maxspeedlayer 161 161 { 162 162 set maxspeed; 163 163 color: speed_120#ccad24; 164 164 } 165 way["maxspeed"="130"]::maxspeed 165 way["maxspeed"="130"]::maxspeedlayer 166 166 { 167 167 set maxspeed; … … 169 169 } 170 170 /* mph */ 171 way["maxspeed"="5 mph"]::maxspeed 171 way["maxspeed"="5 mph"]::maxspeedlayer 172 172 { 173 173 set maxspeed; 174 174 color: speed_5_mph#b80022; 175 175 } 176 way["maxspeed"="10 mph"]::maxspeed 176 way["maxspeed"="10 mph"]::maxspeedlayer 177 177 { 178 178 set maxspeed; 179 179 color: speed_10_mph#00da8b; 180 180 } 181 way["maxspeed"="15 mph"]::maxspeed 181 way["maxspeed"="15 mph"]::maxspeedlayer 182 182 { 183 183 set maxspeed; 184 184 color: speed_15_mph#e3cc82; 185 185 } 186 way["maxspeed"="20 mph"]::maxspeed 186 way["maxspeed"="20 mph"]::maxspeedlayer 187 187 { 188 188 set maxspeed; 189 189 color: speed_20_mph#4d4dff; 190 190 } 191 way["maxspeed"="25 mph"]::maxspeed 191 way["maxspeed"="25 mph"]::maxspeedlayer 192 192 { 193 193 set maxspeed; 194 194 color: speed_25_mph#4d4d00; 195 195 } 196 way["maxspeed"="30 mph"]::maxspeed 196 way["maxspeed"="30 mph"]::maxspeedlayer 197 197 { 198 198 set maxspeed; 199 199 color: speed_30_mph#ff529a; 200 200 } 201 way["maxspeed"="35 mph"]::maxspeed 201 way["maxspeed"="35 mph"]::maxspeedlayer 202 202 { 203 203 set maxspeed; 204 204 color: speed_35_mph#07f807; 205 205 } 206 way["maxspeed"="40 mph"]::maxspeed 206 way["maxspeed"="40 mph"]::maxspeedlayer 207 207 { 208 208 set maxspeed; 209 209 color: speed_40_mph#9f9fff; 210 210 } 211 way["maxspeed"="45 mph"]::maxspeed 211 way["maxspeed"="45 mph"]::maxspeedlayer 212 212 { 213 213 set maxspeed; 214 214 color: speed_45_mph#ee8b00; 215 215 } 216 way["maxspeed"="50 mph"]::maxspeed 216 way["maxspeed"="50 mph"]::maxspeedlayer 217 217 { 218 218 set maxspeed; 219 219 color: speed_50_mph#f90808; 220 220 } 221 way["maxspeed"="55 mph"]::maxspeed 221 way["maxspeed"="55 mph"]::maxspeedlayer 222 222 { 223 223 set maxspeed; 224 224 color: speed_55_mph#07f8f8; 225 225 } 226 way["maxspeed"="60 mph"]::maxspeed 226 way["maxspeed"="60 mph"]::maxspeedlayer 227 227 { 228 228 set maxspeed; 229 229 color: speed_60_mph#f807f8; 230 230 } 231 way["maxspeed"="65 mph"]::maxspeed 231 way["maxspeed"="65 mph"]::maxspeedlayer 232 232 { 233 233 set maxspeed; 234 234 color: speed_65_mph#7807f8; 235 235 } 236 way["maxspeed"="70 mph"]::maxspeed 236 way["maxspeed"="70 mph"]::maxspeedlayer 237 237 { 238 238 set maxspeed; 239 239 color: speed_70_mph#ccad24; 240 240 } 241 way["maxspeed"="75 mph"]::maxspeed 241 way["maxspeed"="75 mph"]::maxspeedlayer 242 242 { 243 243 set maxspeed; … … 245 245 } 246 246 247 way.maxspeed::maxspeed 247 way.maxspeed::maxspeedlayer 248 248 { 249 249 opacity: 0.75; … … 251 251 z-index: -1; 252 252 } 253 way|z16.maxspeed::maxspeed 253 way|z16.maxspeed::maxspeedlayer 254 254 { 255 255 width: 12; 256 256 } 257 way|z-15.maxspeed::maxspeed 257 way|z-15.maxspeed::maxspeedlayer 258 258 { 259 259 width:10; 260 260 } 261 way.maxspeed[maxspeed:variable]::maxspeed 261 way.maxspeed[maxspeed:variable]::maxspeedlayer 262 262 { 263 263 dashes: 34,6; … … 269 269 /* display maxspeed:backward=* for lefthandtraffic */ 270 270 271 way["maxspeed:forward"="none"]:righthandtraffic::maxspeed, 272 way["maxspeed:backward"="none"]!:righthandtraffic::maxspeed 271 way["maxspeed:forward"="none"]:righthandtraffic::maxspeedlayer, 272 way["maxspeed:backward"="none"]!:righthandtraffic::maxspeedlayer 273 273 { 274 274 set maxspeed_right; … … 276 276 } 277 277 /* km/h */ 278 way["maxspeed:forward"="5"]:righthandtraffic::maxspeed, 279 way["maxspeed:backward"="5"]!:righthandtraffic::maxspeed 278 way["maxspeed:forward"="5"]:righthandtraffic::maxspeedlayer, 279 way["maxspeed:backward"="5"]!:righthandtraffic::maxspeedlayer 280 280 { 281 281 set maxspeed_right; 282 282 right-casing-color: speed_5#ff5656; 283 283 } 284 way["maxspeed:forward"="10"]:righthandtraffic::maxspeed, 285 way["maxspeed:backward"="10"]!:righthandtraffic::maxspeed 284 way["maxspeed:forward"="10"]:righthandtraffic::maxspeedlayer, 285 way["maxspeed:backward"="10"]!:righthandtraffic::maxspeedlayer 286 286 { 287 287 set maxspeed_right; 288 288 right-casing-color: speed_10#b80022; 289 289 } 290 way["maxspeed:forward"="15"]:righthandtraffic::maxspeed, 291 way["maxspeed:backward"="15"]!:righthandtraffic::maxspeed 290 way["maxspeed:forward"="15"]:righthandtraffic::maxspeedlayer, 291 way["maxspeed:backward"="15"]!:righthandtraffic::maxspeedlayer 292 292 { 293 293 set maxspeed_right; 294 294 right-casing-color: speed_15#00da8b; 295 295 } 296 way["maxspeed:forward"="20"]:righthandtraffic::maxspeed, 297 way["maxspeed:backward"="20"]!:righthandtraffic::maxspeed, 298 way["maxspeed:forward"="RU:living_street"][setting("RU")]:righthandtraffic::maxspeed 296 way["maxspeed:forward"="20"]:righthandtraffic::maxspeedlayer, 297 way["maxspeed:backward"="20"]!:righthandtraffic::maxspeedlayer, 298 way["maxspeed:forward"="RU:living_street"][setting("RU")]:righthandtraffic::maxspeedlayer 299 299 /* no left hand traffic in RU, so this selector is not needed */ 300 300 { … … 302 302 right-casing-color: speed_20#e3cc82; 303 303 } 304 way["maxspeed:forward"="30"]:righthandtraffic::maxspeed, 305 way["maxspeed:backward"="30"]!:righthandtraffic::maxspeed 304 way["maxspeed:forward"="30"]:righthandtraffic::maxspeedlayer, 305 way["maxspeed:backward"="30"]!:righthandtraffic::maxspeedlayer 306 306 { 307 307 set maxspeed_right; 308 308 right-casing-color: speed_30#4d4dff; 309 309 } 310 way["maxspeed:forward"="40"]:righthandtraffic::maxspeed, 311 way["maxspeed:backward"="40"]!:righthandtraffic::maxspeed 310 way["maxspeed:forward"="40"]:righthandtraffic::maxspeedlayer, 311 way["maxspeed:backward"="40"]!:righthandtraffic::maxspeedlayer 312 312 { 313 313 set maxspeed_right; 314 314 right-casing-color: speed_40#4d4d00; 315 315 } 316 way["maxspeed:forward"="45"]:righthandtraffic::maxspeed, 317 way["maxspeed:backward"="45"]!:righthandtraffic::maxspeed 316 way["maxspeed:forward"="45"]:righthandtraffic::maxspeedlayer, 317 way["maxspeed:backward"="45"]!:righthandtraffic::maxspeedlayer 318 318 { 319 319 set maxspeed_right; 320 320 right-casing-color: speed_45#ff529a; 321 321 } 322 way["maxspeed:forward"="50"]:righthandtraffic::maxspeed, 323 way["maxspeed:backward"="50"]!:righthandtraffic::maxspeed 322 way["maxspeed:forward"="50"]:righthandtraffic::maxspeedlayer, 323 way["maxspeed:backward"="50"]!:righthandtraffic::maxspeedlayer 324 324 { 325 325 set maxspeed_right; 326 326 right-casing-color: speed_50#07f807; 327 327 } 328 way["maxspeed:forward"="60"]:righthandtraffic::maxspeed, 329 way["maxspeed:backward"="60"]!:righthandtraffic::maxspeed, 330 way["maxspeed:forward"="RU:urban"][setting("RU")]:righthandtraffic::maxspeed 328 way["maxspeed:forward"="60"]:righthandtraffic::maxspeedlayer, 329 way["maxspeed:backward"="60"]!:righthandtraffic::maxspeedlayer, 330 way["maxspeed:forward"="RU:urban"][setting("RU")]:righthandtraffic::maxspeedlayer 331 331 { 332 332 set maxspeed_right; 333 333 right-casing-color: speed_60#9f9fff; 334 334 } 335 way["maxspeed:forward"="70"]:righthandtraffic::maxspeed, 336 way["maxspeed:backward"="70"]!:righthandtraffic::maxspeed 335 way["maxspeed:forward"="70"]:righthandtraffic::maxspeedlayer, 336 way["maxspeed:backward"="70"]!:righthandtraffic::maxspeedlayer 337 337 { 338 338 set maxspeed_right; 339 339 right-casing-color: speed_70#ee8b00; 340 340 } 341 way["maxspeed:forward"="80"]:righthandtraffic::maxspeed, 342 way["maxspeed:backward"="80"]!:righthandtraffic::maxspeed 341 way["maxspeed:forward"="80"]:righthandtraffic::maxspeedlayer, 342 way["maxspeed:backward"="80"]!:righthandtraffic::maxspeedlayer 343 343 { 344 344 set maxspeed_right; 345 345 right-casing-color: speed_80#f90808; 346 346 } 347 way["maxspeed:forward"="90"]:righthandtraffic::maxspeed, 348 way["maxspeed:backward"="90"]!:righthandtraffic::maxspeed, 349 way["maxspeed:forward"="RU:rural"][setting("RU")]:righthandtraffic::maxspeed 347 way["maxspeed:forward"="90"]:righthandtraffic::maxspeedlayer, 348 way["maxspeed:backward"="90"]!:righthandtraffic::maxspeedlayer, 349 way["maxspeed:forward"="RU:rural"][setting("RU")]:righthandtraffic::maxspeedlayer 350 350 { 351 351 set maxspeed_right; 352 352 right-casing-color: speed_90#07f8f8; 353 353 } 354 way["maxspeed:forward"="100"]:righthandtraffic::maxspeed, 355 way["maxspeed:backward"="100"]!:righthandtraffic::maxspeed 354 way["maxspeed:forward"="100"]:righthandtraffic::maxspeedlayer, 355 way["maxspeed:backward"="100"]!:righthandtraffic::maxspeedlayer 356 356 { 357 357 set maxspeed_right; 358 358 right-casing-color: speed_100#f807f8; 359 359 } 360 way["maxspeed:forward"="110"]:righthandtraffic::maxspeed, 361 way["maxspeed:backward"="110"]!:righthandtraffic::maxspeed, 362 way["maxspeed:forward"="RU:motorway"][setting("RU")]:righthandtraffic::maxspeed 360 way["maxspeed:forward"="110"]:righthandtraffic::maxspeedlayer, 361 way["maxspeed:backward"="110"]!:righthandtraffic::maxspeedlayer, 362 way["maxspeed:forward"="RU:motorway"][setting("RU")]:righthandtraffic::maxspeedlayer 363 363 { 364 364 set maxspeed_right; 365 365 right-casing-color: speed_110#7807f8; 366 366 } 367 way["maxspeed:forward"="120"]:righthandtraffic::maxspeed, 368 way["maxspeed:backward"="120"]!:righthandtraffic::maxspeed 367 way["maxspeed:forward"="120"]:righthandtraffic::maxspeedlayer, 368 way["maxspeed:backward"="120"]!:righthandtraffic::maxspeedlayer 369 369 { 370 370 set maxspeed_right; 371 371 right-casing-color: speed_120#ccad24; 372 372 } 373 way["maxspeed:forward"="130"]:righthandtraffic::maxspeed, 374 way["maxspeed:backward"="130"]!:righthandtraffic::maxspeed 373 way["maxspeed:forward"="130"]:righthandtraffic::maxspeedlayer, 374 way["maxspeed:backward"="130"]!:righthandtraffic::maxspeedlayer 375 375 { 376 376 set maxspeed_right; … … 378 378 } 379 379 /* mph */ 380 way["maxspeed:forward"="5 mph"]:righthandtraffic::maxspeed, 381 way["maxspeed:backward"="5 mph"]!:righthandtraffic::maxspeed 380 way["maxspeed:forward"="5 mph"]:righthandtraffic::maxspeedlayer, 381 way["maxspeed:backward"="5 mph"]!:righthandtraffic::maxspeedlayer 382 382 { 383 383 set maxspeed_right; 384 384 right-casing-color: speed_5_mph#b80022; 385 385 } 386 way["maxspeed:forward"="10 mph"]:righthandtraffic::maxspeed, 387 way["maxspeed:backward"="10 mph"]!:righthandtraffic::maxspeed 386 way["maxspeed:forward"="10 mph"]:righthandtraffic::maxspeedlayer, 387 way["maxspeed:backward"="10 mph"]!:righthandtraffic::maxspeedlayer 388 388 { 389 389 set maxspeed_right; 390 390 right-casing-color: speed_10_mph#00da8b; 391 391 } 392 way["maxspeed:forward"="15 mph"]:righthandtraffic::maxspeed, 393 way["maxspeed:backward"="15 mph"]!:righthandtraffic::maxspeed 392 way["maxspeed:forward"="15 mph"]:righthandtraffic::maxspeedlayer, 393 way["maxspeed:backward"="15 mph"]!:righthandtraffic::maxspeedlayer 394 394 { 395 395 set maxspeed_right; 396 396 right-casing-color: speed_15_mph#e3cc82; 397 397 } 398 way["maxspeed:forward"="20 mph"]:righthandtraffic::maxspeed, 399 way["maxspeed:backward"="20 mph"]!:righthandtraffic::maxspeed 398 way["maxspeed:forward"="20 mph"]:righthandtraffic::maxspeedlayer, 399 way["maxspeed:backward"="20 mph"]!:righthandtraffic::maxspeedlayer 400 400 { 401 401 set maxspeed_right; 402 402 right-casing-color: speed_20_mph#4d4dff; 403 403 } 404 way["maxspeed:forward"="25 mph"]:righthandtraffic::maxspeed, 405 way["maxspeed:backward"="25 mph"]!:righthandtraffic::maxspeed 404 way["maxspeed:forward"="25 mph"]:righthandtraffic::maxspeedlayer, 405 way["maxspeed:backward"="25 mph"]!:righthandtraffic::maxspeedlayer 406 406 { 407 407 set maxspeed_right; 408 408 right-casing-color: speed_25_mph#4d4d00; 409 409 } 410 way["maxspeed:forward"="30 mph"]:righthandtraffic::maxspeed, 411 way["maxspeed:backward"="30 mph"]!:righthandtraffic::maxspeed 410 way["maxspeed:forward"="30 mph"]:righthandtraffic::maxspeedlayer, 411 way["maxspeed:backward"="30 mph"]!:righthandtraffic::maxspeedlayer 412 412 { 413 413 set maxspeed_right; 414 414 right-casing-color: speed_30_mph#ff529a; 415 415 } 416 way["maxspeed:forward"="35 mph"]:righthandtraffic::maxspeed, 417 way["maxspeed:backward"="35 mph"]!:righthandtraffic::maxspeed 416 way["maxspeed:forward"="35 mph"]:righthandtraffic::maxspeedlayer, 417 way["maxspeed:backward"="35 mph"]!:righthandtraffic::maxspeedlayer 418 418 { 419 419 set maxspeed_right; 420 420 right-casing-color: speed_35_mph#07f807; 421 421 } 422 way["maxspeed:forward"="40 mph"]:righthandtraffic::maxspeed, 423 way["maxspeed:backward"="40 mph"]!:righthandtraffic::maxspeed 422 way["maxspeed:forward"="40 mph"]:righthandtraffic::maxspeedlayer, 423 way["maxspeed:backward"="40 mph"]!:righthandtraffic::maxspeedlayer 424 424 { 425 425 set maxspeed_right; 426 426 right-casing-color: speed_40_mph#9f9fff; 427 427 } 428 way["maxspeed:forward"="45 mph"]:righthandtraffic::maxspeed, 429 way["maxspeed:backward"="45 mph"]!:righthandtraffic::maxspeed 428 way["maxspeed:forward"="45 mph"]:righthandtraffic::maxspeedlayer, 429 way["maxspeed:backward"="45 mph"]!:righthandtraffic::maxspeedlayer 430 430 { 431 431 set maxspeed_right; 432 432 right-casing-color: speed_45_mph#ee8b00; 433 433 } 434 way["maxspeed:forward"="50 mph"]:righthandtraffic::maxspeed, 435 way["maxspeed:backward"="50 mph"]!:righthandtraffic::maxspeed 434 way["maxspeed:forward"="50 mph"]:righthandtraffic::maxspeedlayer, 435 way["maxspeed:backward"="50 mph"]!:righthandtraffic::maxspeedlayer 436 436 { 437 437 set maxspeed_right; 438 438 right-casing-color: speed_50_mph#f90808; 439 439 } 440 way["maxspeed:forward"="55 mph"]:righthandtraffic::maxspeed, 441 way["maxspeed:backward"="55 mph"]!:righthandtraffic::maxspeed 440 way["maxspeed:forward"="55 mph"]:righthandtraffic::maxspeedlayer, 441 way["maxspeed:backward"="55 mph"]!:righthandtraffic::maxspeedlayer 442 442 { 443 443 set maxspeed_right; 444 444 right-casing-color: speed_55_mph#07f8f8; 445 445 } 446 way["maxspeed:forward"="60 mph"]:righthandtraffic::maxspeed, 447 way["maxspeed:backward"="60 mph"]!:righthandtraffic::maxspeed 446 way["maxspeed:forward"="60 mph"]:righthandtraffic::maxspeedlayer, 447 way["maxspeed:backward"="60 mph"]!:righthandtraffic::maxspeedlayer 448 448 { 449 449 set maxspeed_right; 450 450 right-casing-color: speed_60_mph#f807f8; 451 451 } 452 way["maxspeed:forward"="65 mph"]:righthandtraffic::maxspeed, 453 way["maxspeed:backward"="65 mph"]!:righthandtraffic::maxspeed 452 way["maxspeed:forward"="65 mph"]:righthandtraffic::maxspeedlayer, 453 way["maxspeed:backward"="65 mph"]!:righthandtraffic::maxspeedlayer 454 454 { 455 455 set maxspeed_right; 456 456 right-casing-color: speed_65_mph#7807f8; 457 457 } 458 way["maxspeed:forward"="70 mph"]:righthandtraffic::maxspeed, 459 way["maxspeed:backward"="70 mph"]!:righthandtraffic::maxspeed 458 way["maxspeed:forward"="70 mph"]:righthandtraffic::maxspeedlayer, 459 way["maxspeed:backward"="70 mph"]!:righthandtraffic::maxspeedlayer 460 460 { 461 461 set maxspeed_right; 462 462 right-casing-color: speed_70_mph#ccad24; 463 463 } 464 way["maxspeed:forward"="75 mph"]:righthandtraffic::maxspeed, 465 way["maxspeed:backward"="75 mph"]!:righthandtraffic::maxspeed 464 way["maxspeed:forward"="75 mph"]:righthandtraffic::maxspeedlayer, 465 way["maxspeed:backward"="75 mph"]!:righthandtraffic::maxspeedlayer 466 466 { 467 467 set maxspeed_right; … … 469 469 } 470 470 471 way.maxspeed_right::maxspeed 471 way.maxspeed_right::maxspeedlayer 472 472 { 473 473 right-casing-opacity: 0.75; … … 475 475 right-casing-offset: 0; 476 476 } 477 way|z16.maxspeed_right::maxspeed 477 way|z16.maxspeed_right::maxspeedlayer 478 478 { 479 479 right-casing-width: 5; 480 480 } 481 way|z-15.maxspeed_right::maxspeed 481 way|z-15.maxspeed_right::maxspeedlayer 482 482 { 483 483 right-casing-width: 4; 484 484 } 485 way.maxspeed_right[maxspeed:variable:forward]:righthandtraffic::maxspeed, 486 way.maxspeed_right[maxspeed:variable:backward]!:righthandtraffic::maxspeed 485 way.maxspeed_right[maxspeed:variable:forward]:righthandtraffic::maxspeedlayer, 486 way.maxspeed_right[maxspeed:variable:backward]!:righthandtraffic::maxspeedlayer 487 487 { 488 488 right-casing-dashes: 34,6; … … 494 494 /* display maxspeed:backward=* for righthandtraffic */ 495 495 496 way["maxspeed:forward"="none"]!:righthandtraffic::maxspeed, 497 way["maxspeed:backward"="none"]:righthandtraffic::maxspeed 496 way["maxspeed:forward"="none"]!:righthandtraffic::maxspeedlayer, 497 way["maxspeed:backward"="none"]:righthandtraffic::maxspeedlayer 498 498 { 499 499 set maxspeed_left; … … 501 501 } 502 502 /* km/h */ 503 way["maxspeed:forward"="5"]!:righthandtraffic::maxspeed, 504 way["maxspeed:backward"="5"]:righthandtraffic::maxspeed 503 way["maxspeed:forward"="5"]!:righthandtraffic::maxspeedlayer, 504 way["maxspeed:backward"="5"]:righthandtraffic::maxspeedlayer 505 505 { 506 506 set maxspeed_left; 507 507 left-casing-color: speed_5#ff5656; 508 508 } 509 way["maxspeed:forward"="10"]!:righthandtraffic::maxspeed, 510 way["maxspeed:backward"="10"]:righthandtraffic::maxspeed 509 way["maxspeed:forward"="10"]!:righthandtraffic::maxspeedlayer, 510 way["maxspeed:backward"="10"]:righthandtraffic::maxspeedlayer 511 511 { 512 512 set maxspeed_left; 513 513 left-casing-color: speed_10#b80022; 514 514 } 515 way["maxspeed:forward"="15"]!:righthandtraffic::maxspeed, 516 way["maxspeed:backward"="15"]:righthandtraffic::maxspeed 515 way["maxspeed:forward"="15"]!:righthandtraffic::maxspeedlayer, 516 way["maxspeed:backward"="15"]:righthandtraffic::maxspeedlayer 517 517 { 518 518 set maxspeed_left; 519 519 left-casing-color: speed_15#00da8b; 520 520 } 521 way["maxspeed:forward"="20"]!:righthandtraffic::maxspeed, 522 way["maxspeed:backward"="20"]:righthandtraffic::maxspeed, 523 way["maxspeed:backward"="RU:living_street"][setting("RU")]:righthandtraffic::maxspeed 521 way["maxspeed:forward"="20"]!:righthandtraffic::maxspeedlayer, 522 way["maxspeed:backward"="20"]:righthandtraffic::maxspeedlayer, 523 way["maxspeed:backward"="RU:living_street"][setting("RU")]:righthandtraffic::maxspeedlayer 524 524 { 525 525 set maxspeed_left; 526 526 left-casing-color: speed_20#e3cc82; 527 527 } 528 way["maxspeed:forward"="30"]!:righthandtraffic::maxspeed, 529 way["maxspeed:backward"="30"]:righthandtraffic::maxspeed 528 way["maxspeed:forward"="30"]!:righthandtraffic::maxspeedlayer, 529 way["maxspeed:backward"="30"]:righthandtraffic::maxspeedlayer 530 530 { 531 531 set maxspeed_left; 532 532 left-casing-color: speed_30#4d4dff; 533 533 } 534 way["maxspeed:forward"="40"]!:righthandtraffic::maxspeed, 535 way["maxspeed:backward"="40"]:righthandtraffic::maxspeed 534 way["maxspeed:forward"="40"]!:righthandtraffic::maxspeedlayer, 535 way["maxspeed:backward"="40"]:righthandtraffic::maxspeedlayer 536 536 { 537 537 set maxspeed_left; 538 538 left-casing-color: speed_40#4d4d00; 539 539 } 540 way["maxspeed:forward"="45"]!:righthandtraffic::maxspeed, 541 way["maxspeed:backward"="45"]:righthandtraffic::maxspeed 540 way["maxspeed:forward"="45"]!:righthandtraffic::maxspeedlayer, 541 way["maxspeed:backward"="45"]:righthandtraffic::maxspeedlayer 542 542 { 543 543 set maxspeed_left; 544 544 left-casing-color: speed_45#ff529a; 545 545 } 546 way["maxspeed:forward"="50"]!:righthandtraffic::maxspeed, 547 way["maxspeed:backward"="50"]:righthandtraffic::maxspeed 546 way["maxspeed:forward"="50"]!:righthandtraffic::maxspeedlayer, 547 way["maxspeed:backward"="50"]:righthandtraffic::maxspeedlayer 548 548 { 549 549 set maxspeed_left; 550 550 left-casing-color: speed_50#07f807; 551 551 } 552 way["maxspeed:forward"="60"]!:righthandtraffic::maxspeed, 553 way["maxspeed:backward"="60"]:righthandtraffic::maxspeed, 554 way["maxspeed:backward"="RU:urban"][setting("RU")]:righthandtraffic::maxspeed 552 way["maxspeed:forward"="60"]!:righthandtraffic::maxspeedlayer, 553 way["maxspeed:backward"="60"]:righthandtraffic::maxspeedlayer, 554 way["maxspeed:backward"="RU:urban"][setting("RU")]:righthandtraffic::maxspeedlayer 555 555 { 556 556 set maxspeed_left; 557 557 left-casing-color: speed_60#9f9fff; 558 558 } 559 way["maxspeed:forward"="70"]!:righthandtraffic::maxspeed, 560 way["maxspeed:backward"="70"]:righthandtraffic::maxspeed 559 way["maxspeed:forward"="70"]!:righthandtraffic::maxspeedlayer, 560 way["maxspeed:backward"="70"]:righthandtraffic::maxspeedlayer 561 561 { 562 562 set maxspeed_left; 563 563 left-casing-color: speed_70#ee8b00; 564 564 } 565 way["maxspeed:forward"="80"]!:righthandtraffic::maxspeed, 566 way["maxspeed:backward"="80"]:righthandtraffic::maxspeed 565 way["maxspeed:forward"="80"]!:righthandtraffic::maxspeedlayer, 566 way["maxspeed:backward"="80"]:righthandtraffic::maxspeedlayer 567 567 { 568 568 set maxspeed_left; 569 569 left-casing-color: speed_80#f90808; 570 570 } 571 way["maxspeed:forward"="90"]!:righthandtraffic::maxspeed, 572 way["maxspeed:backward"="90"]:righthandtraffic::maxspeed, 573 way["maxspeed:backward"="RU:rural"][setting("RU")]:righthandtraffic::maxspeed 571 way["maxspeed:forward"="90"]!:righthandtraffic::maxspeedlayer, 572 way["maxspeed:backward"="90"]:righthandtraffic::maxspeedlayer, 573 way["maxspeed:backward"="RU:rural"][setting("RU")]:righthandtraffic::maxspeedlayer 574 574 { 575 575 set maxspeed_left; 576 576 left-casing-color: speed_90#07f8f8; 577 577 } 578 way["maxspeed:forward"="100"]!:righthandtraffic::maxspeed, 579 way["maxspeed:backward"="100"]:righthandtraffic::maxspeed 578 way["maxspeed:forward"="100"]!:righthandtraffic::maxspeedlayer, 579 way["maxspeed:backward"="100"]:righthandtraffic::maxspeedlayer 580 580 { 581 581 set maxspeed_left; 582 582 left-casing-color: speed_100#f807f8; 583 583 } 584 way["maxspeed:forward"="110"]!:righthandtraffic::maxspeed, 585 way["maxspeed:backward"="110"]:righthandtraffic::maxspeed, 586 way["maxspeed:backward"="RU:motorway"][setting("RU")]:righthandtraffic::maxspeed 584 way["maxspeed:forward"="110"]!:righthandtraffic::maxspeedlayer, 585 way["maxspeed:backward"="110"]:righthandtraffic::maxspeedlayer, 586 way["maxspeed:backward"="RU:motorway"][setting("RU")]:righthandtraffic::maxspeedlayer 587 587 { 588 588 set maxspeed_left; 589 589 left-casing-color: speed_110#7807f8; 590 590 } 591 way["maxspeed:forward"="120"]!:righthandtraffic::maxspeed, 592 way["maxspeed:backward"="120"]:righthandtraffic::maxspeed 591 way["maxspeed:forward"="120"]!:righthandtraffic::maxspeedlayer, 592 way["maxspeed:backward"="120"]:righthandtraffic::maxspeedlayer 593 593 { 594 594 set maxspeed_left; 595 595 left-casing-color: speed_120#ccad24; 596 596 } 597 way["maxspeed:forward"="130"]!:righthandtraffic::maxspeed, 598 way["maxspeed:backward"="130"]:righthandtraffic::maxspeed 597 way["maxspeed:forward"="130"]!:righthandtraffic::maxspeedlayer, 598 way["maxspeed:backward"="130"]:righthandtraffic::maxspeedlayer 599 599 { 600 600 set maxspeed_left; … … 602 602 } 603 603 /* mph */ 604 way["maxspeed:forward"="5 mph"]!:righthandtraffic::maxspeed, 605 way["maxspeed:backward"="5 mph"]:righthandtraffic::maxspeed 604 way["maxspeed:forward"="5 mph"]!:righthandtraffic::maxspeedlayer, 605 way["maxspeed:backward"="5 mph"]:righthandtraffic::maxspeedlayer 606 606 { 607 607 set maxspeed_left; 608 608 left-casing-color: speed_5_mph#b80022; 609 609 } 610 way["maxspeed:forward"="10 mph"]!:righthandtraffic::maxspeed, 611 way["maxspeed:backward"="10 mph"]:righthandtraffic::maxspeed 610 way["maxspeed:forward"="10 mph"]!:righthandtraffic::maxspeedlayer, 611 way["maxspeed:backward"="10 mph"]:righthandtraffic::maxspeedlayer 612 612 { 613 613 set maxspeed_left; 614 614 left-casing-color: speed_10_mph#00da8b; 615 615 } 616 way["maxspeed:forward"="15 mph"]!:righthandtraffic::maxspeed, 617 way["maxspeed:backward"="15 mph"]:righthandtraffic::maxspeed 616 way["maxspeed:forward"="15 mph"]!:righthandtraffic::maxspeedlayer, 617 way["maxspeed:backward"="15 mph"]:righthandtraffic::maxspeedlayer 618 618 { 619 619 set maxspeed_left; 620 620 left-casing-color: speed_15_mph#e3cc82; 621 621 } 622 way["maxspeed:forward"="20 mph"]!:righthandtraffic::maxspeed, 623 way["maxspeed:backward"="20 mph"]:righthandtraffic::maxspeed 622 way["maxspeed:forward"="20 mph"]!:righthandtraffic::maxspeedlayer, 623 way["maxspeed:backward"="20 mph"]:righthandtraffic::maxspeedlayer 624 624 { 625 625 set maxspeed_left; 626 626 left-casing-color: speed_20_mph#4d4dff; 627 627 } 628 way["maxspeed:forward"="25 mph"]!:righthandtraffic::maxspeed, 629 way["maxspeed:backward"="25 mph"]:righthandtraffic::maxspeed 628 way["maxspeed:forward"="25 mph"]!:righthandtraffic::maxspeedlayer, 629 way["maxspeed:backward"="25 mph"]:righthandtraffic::maxspeedlayer 630 630 { 631 631 set maxspeed_left; 632 632 left-casing-color: speed_25_mph#4d4d00; 633 633 } 634 way["maxspeed:forward"="30 mph"]!:righthandtraffic::maxspeed, 635 way["maxspeed:backward"="30 mph"]:righthandtraffic::maxspeed 634 way["maxspeed:forward"="30 mph"]!:righthandtraffic::maxspeedlayer, 635 way["maxspeed:backward"="30 mph"]:righthandtraffic::maxspeedlayer 636 636 { 637 637 set maxspeed_left; 638 638 left-casing-color: speed_30_mph#ff529a; 639 639 } 640 way["maxspeed:forward"="35 mph"]!:righthandtraffic::maxspeed, 641 way["maxspeed:backward"="35 mph"]:righthandtraffic::maxspeed 640 way["maxspeed:forward"="35 mph"]!:righthandtraffic::maxspeedlayer, 641 way["maxspeed:backward"="35 mph"]:righthandtraffic::maxspeedlayer 642 642 { 643 643 set maxspeed_left; 644 644 left-casing-color: speed_35_mph#07f807; 645 645 } 646 way["maxspeed:forward"="40 mph"]!:righthandtraffic::maxspeed, 647 way["maxspeed:backward"="40 mph"]:righthandtraffic::maxspeed 646 way["maxspeed:forward"="40 mph"]!:righthandtraffic::maxspeedlayer, 647 way["maxspeed:backward"="40 mph"]:righthandtraffic::maxspeedlayer 648 648 { 649 649 set maxspeed_left; 650 650 left-casing-color: speed_40_mph#9f9fff; 651 651 } 652 way["maxspeed:forward"="45 mph"]!:righthandtraffic::maxspeed, 653 way["maxspeed:backward"="45 mph"]:righthandtraffic::maxspeed 652 way["maxspeed:forward"="45 mph"]!:righthandtraffic::maxspeedlayer, 653 way["maxspeed:backward"="45 mph"]:righthandtraffic::maxspeedlayer 654 654 { 655 655 set maxspeed_left; 656 656 left-casing-color: speed_45_mph#ee8b00; 657 657 } 658 way["maxspeed:forward"="50 mph"]!:righthandtraffic::maxspeed, 659 way["maxspeed:backward"="50 mph"]:righthandtraffic::maxspeed 658 way["maxspeed:forward"="50 mph"]!:righthandtraffic::maxspeedlayer, 659 way["maxspeed:backward"="50 mph"]:righthandtraffic::maxspeedlayer 660 660 { 661 661 set maxspeed_left; 662 662 left-casing-color: speed_50_mph#f90808; 663 663 } 664 way["maxspeed:forward"="55 mph"]!:righthandtraffic::maxspeed, 665 way["maxspeed:backward"="55 mph"]:righthandtraffic::maxspeed 664 way["maxspeed:forward"="55 mph"]!:righthandtraffic::maxspeedlayer, 665 way["maxspeed:backward"="55 mph"]:righthandtraffic::maxspeedlayer 666 666 { 667 667 set maxspeed_left; 668 668 left-casing-color: speed_55_mph#07f8f8; 669 669 } 670 way["maxspeed:forward"="60 mph"]!:righthandtraffic::maxspeed, 671 way["maxspeed:backward"="60 mph"]:righthandtraffic::maxspeed 670 way["maxspeed:forward"="60 mph"]!:righthandtraffic::maxspeedlayer, 671 way["maxspeed:backward"="60 mph"]:righthandtraffic::maxspeedlayer 672 672 { 673 673 set maxspeed_left; 674 674 left-casing-color: speed_60_mph#f807f8; 675 675 } 676 way["maxspeed:forward"="65 mph"]!:righthandtraffic::maxspeed, 677 way["maxspeed:backward"="65 mph"]:righthandtraffic::maxspeed 676 way["maxspeed:forward"="65 mph"]!:righthandtraffic::maxspeedlayer, 677 way["maxspeed:backward"="65 mph"]:righthandtraffic::maxspeedlayer 678 678 { 679 679 set maxspeed_left; 680 680 left-casing-color: speed_65_mph#7807f8; 681 681 } 682 way["maxspeed:forward"="70 mph"]!:righthandtraffic::maxspeed, 683 way["maxspeed:backward"="70 mph"]:righthandtraffic::maxspeed 682 way["maxspeed:forward"="70 mph"]!:righthandtraffic::maxspeedlayer, 683 way["maxspeed:backward"="70 mph"]:righthandtraffic::maxspeedlayer 684 684 { 685 685 set maxspeed_left; 686 686 left-casing-color: speed_70_mph#ccad24; 687 687 } 688 way["maxspeed:forward"="75 mph"]!:righthandtraffic::maxspeed, 689 way["maxspeed:backward"="75 mph"]:righthandtraffic::maxspeed 688 way["maxspeed:forward"="75 mph"]!:righthandtraffic::maxspeedlayer, 689 way["maxspeed:backward"="75 mph"]:righthandtraffic::maxspeedlayer 690 690 { 691 691 set maxspeed_left; … … 693 693 } 694 694 695 way.maxspeed_left::maxspeed 695 way.maxspeed_left::maxspeedlayer 696 696 { 697 697 left-casing-opacity: 0.75; … … 699 699 left-casing-offset: 0; 700 700 } 701 way|z16.maxspeed_left::maxspeed 701 way|z16.maxspeed_left::maxspeedlayer 702 702 { 703 703 left-casing-width: 5; 704 704 } 705 way|z-15.maxspeed_left::maxspeed 705 way|z-15.maxspeed_left::maxspeedlayer 706 706 { 707 707 left-casing-width: 4; 708 708 } 709 way.maxspeed_left[maxspeed:variable:forward]!:righthandtraffic::maxspeed, 710 way.maxspeed_left[maxspeed:variable:backward]:righthandtraffic::maxspeed 709 way.maxspeed_left[maxspeed:variable:forward]!:righthandtraffic::maxspeedlayer, 710 way.maxspeed_left[maxspeed:variable:backward]:righthandtraffic::maxspeedlayer 711 711 { 712 712 left-casing-dashes: 34,6; … … 718 718 719 719 /* report wrong value of maxspeed */ 720 way[maxspeed=~/^[0-9]+$/]::maxspeed, 721 way[maxspeed=signals]::maxspeed, 722 way[maxspeed=none]::maxspeed, 723 way[maxspeed=~/^[0-9]+ mph/]::maxspeed, 724 way[maxspeed=~/[0-9]+ km\/h/]::maxspeed, 725 way[maxspeed=~/[0-9]+ knots/]::maxspeed, 726 way[maxspeed="RU:living_street"][setting("RU")]::maxspeed, 727 way[maxspeed="RU:urban"][setting("RU")]::maxspeed, 728 way[maxspeed="RU:rural"][setting("RU")]::maxspeed, 729 way[maxspeed="RU:motorway"][setting("RU")]::maxspeed 720 way[maxspeed=~/^[0-9]+$/]::maxspeedlayer, 721 way[maxspeed=signals]::maxspeedlayer, 722 way[maxspeed=none]::maxspeedlayer, 723 way[maxspeed=~/^[0-9]+ mph/]::maxspeedlayer, 724 way[maxspeed=~/[0-9]+ km\/h/]::maxspeedlayer, 725 way[maxspeed=~/[0-9]+ knots/]::maxspeedlayer, 726 way[maxspeed="RU:living_street"][setting("RU")]::maxspeedlayer, 727 way[maxspeed="RU:urban"][setting("RU")]::maxspeedlayer, 728 way[maxspeed="RU:rural"][setting("RU")]::maxspeedlayer, 729 way[maxspeed="RU:motorway"][setting("RU")]::maxspeedlayer 730 730 { 731 731 set correct_value; 732 732 } 733 way[maxspeed:forward=~/^[0-9]+$/]::maxspeed, 734 way[maxspeed:forward=signals]::maxspeed, 735 way[maxspeed:forward=none]::maxspeed, 736 way[maxspeed:forward=~/^[0-9]+ mph/]::maxspeed, 737 way[maxspeed:forward=~/[0-9]+ km\/h/]::maxspeed, 738 way[maxspeed:forward=~/[0-9]+ knots/]::maxspeed, 739 way[maxspeed:forward="RU:living_street"][setting("RU")]::maxspeed, 740 way[maxspeed:forward="RU:urban"][setting("RU")]::maxspeed, 741 way[maxspeed:forward="RU:rural"][setting("RU")]::maxspeed, 742 way[maxspeed:forward="RU:motorway"][setting("RU")]::maxspeed 733 way[maxspeed:forward=~/^[0-9]+$/]::maxspeedlayer, 734 way[maxspeed:forward=signals]::maxspeedlayer, 735 way[maxspeed:forward=none]::maxspeedlayer, 736 way[maxspeed:forward=~/^[0-9]+ mph/]::maxspeedlayer, 737 way[maxspeed:forward=~/[0-9]+ km\/h/]::maxspeedlayer, 738 way[maxspeed:forward=~/[0-9]+ knots/]::maxspeedlayer, 739 way[maxspeed:forward="RU:living_street"][setting("RU")]::maxspeedlayer, 740 way[maxspeed:forward="RU:urban"][setting("RU")]::maxspeedlayer, 741 way[maxspeed:forward="RU:rural"][setting("RU")]::maxspeedlayer, 742 way[maxspeed:forward="RU:motorway"][setting("RU")]::maxspeedlayer 743 743 { 744 744 set correct_value_forward; 745 745 } 746 way[maxspeed:backward=~/^[0-9]+$/]::maxspeed, 747 way[maxspeed:backward=signals]::maxspeed, 748 way[maxspeed:backward=none]::maxspeed, 749 way[maxspeed:backward=~/^[0-9]+ mph/]::maxspeed, 750 way[maxspeed:backward=~/[0-9]+ km\/h/]::maxspeed, 751 way[maxspeed:backward=~/[0-9]+ knots/]::maxspeed, 752 way[maxspeed:backward="RU:living_street"][setting("RU")]::maxspeed, 753 way[maxspeed:backward="RU:urban"][setting("RU")]::maxspeed, 754 way[maxspeed:backward="RU:rural"][setting("RU")]::maxspeed, 755 way[maxspeed:backward="RU:motorway"][setting("RU")]::maxspeed 746 way[maxspeed:backward=~/^[0-9]+$/]::maxspeedlayer, 747 way[maxspeed:backward=signals]::maxspeedlayer, 748 way[maxspeed:backward=none]::maxspeedlayer, 749 way[maxspeed:backward=~/^[0-9]+ mph/]::maxspeedlayer, 750 way[maxspeed:backward=~/[0-9]+ km\/h/]::maxspeedlayer, 751 way[maxspeed:backward=~/[0-9]+ knots/]::maxspeedlayer, 752 way[maxspeed:backward="RU:living_street"][setting("RU")]::maxspeedlayer, 753 way[maxspeed:backward="RU:urban"][setting("RU")]::maxspeedlayer, 754 way[maxspeed:backward="RU:rural"][setting("RU")]::maxspeedlayer, 755 way[maxspeed:backward="RU:motorway"][setting("RU")]::maxspeedlayer 756 756 { 757 757 set correct_value_backward; 758 758 } 759 759 760 way["maxspeed"]!.correct_value::maxspeed, 761 way["maxspeed:forward"]!.correct_value_forward::maxspeed, 762 way["maxspeed:backward"]!.correct_value_backward::maxspeed 760 way["maxspeed"]!.correct_value::maxspeedlayer, 761 way["maxspeed:forward"]!.correct_value_forward::maxspeedlayer, 762 way["maxspeed:backward"]!.correct_value_backward::maxspeedlayer 763 763 { 764 764 color: yellow;