| 268 | | /* display maxspeed:forward=* for righthandtraffic */ |
| 269 | | /* display maxspeed:backward=* for lefthandtraffic */ |
| 270 | | |
| 271 | | way["maxspeed:forward"="none"]:righthandtraffic::maxspeed, |
| 272 | | way["maxspeed:backward"="none"]!:righthandtraffic::maxspeed |
| 273 | | { |
| 274 | | set maxspeed_right; |
| 275 | | right-casing-color: speed_none#febede; |
| 276 | | } |
| 277 | | /* km/h */ |
| 278 | | way["maxspeed:forward"="5"]:righthandtraffic::maxspeed, |
| 279 | | way["maxspeed:backward"="5"]!:righthandtraffic::maxspeed |
| 280 | | { |
| 281 | | set maxspeed_right; |
| 282 | | right-casing-color: speed_5#ff5656; |
| 283 | | } |
| 284 | | way["maxspeed:forward"="10"]:righthandtraffic::maxspeed, |
| 285 | | way["maxspeed:backward"="10"]!:righthandtraffic::maxspeed |
| 286 | | { |
| 287 | | set maxspeed_right; |
| 288 | | right-casing-color: speed_10#b80022; |
| 289 | | } |
| 290 | | way["maxspeed:forward"="15"]:righthandtraffic::maxspeed, |
| 291 | | way["maxspeed:backward"="15"]!:righthandtraffic::maxspeed |
| 292 | | { |
| 293 | | set maxspeed_right; |
| 294 | | right-casing-color: speed_15#00da8b; |
| 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 |
| 299 | | /* no left hand traffic in RU, so this selector is not needed */ |
| 300 | | { |
| 301 | | set maxspeed_right; |
| 302 | | right-casing-color: speed_20#e3cc82; |
| 303 | | } |
| 304 | | way["maxspeed:forward"="30"]:righthandtraffic::maxspeed, |
| 305 | | way["maxspeed:backward"="30"]!:righthandtraffic::maxspeed |
| 306 | | { |
| 307 | | set maxspeed_right; |
| 308 | | right-casing-color: speed_30#4d4dff; |
| 309 | | } |
| 310 | | way["maxspeed:forward"="40"]:righthandtraffic::maxspeed, |
| 311 | | way["maxspeed:backward"="40"]!:righthandtraffic::maxspeed |
| 312 | | { |
| 313 | | set maxspeed_right; |
| 314 | | right-casing-color: speed_40#4d4d00; |
| 315 | | } |
| 316 | | way["maxspeed:forward"="45"]:righthandtraffic::maxspeed, |
| 317 | | way["maxspeed:backward"="45"]!:righthandtraffic::maxspeed |
| 318 | | { |
| 319 | | set maxspeed_right; |
| 320 | | right-casing-color: speed_45#ff529a; |
| 321 | | } |
| 322 | | way["maxspeed:forward"="50"]:righthandtraffic::maxspeed, |
| 323 | | way["maxspeed:backward"="50"]!:righthandtraffic::maxspeed |
| 324 | | { |
| 325 | | set maxspeed_right; |
| 326 | | right-casing-color: speed_50#07f807; |
| 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 |
| 331 | | { |
| 332 | | set maxspeed_right; |
| 333 | | right-casing-color: speed_60#9f9fff; |
| 334 | | } |
| 335 | | way["maxspeed:forward"="70"]:righthandtraffic::maxspeed, |
| 336 | | way["maxspeed:backward"="70"]!:righthandtraffic::maxspeed |
| 337 | | { |
| 338 | | set maxspeed_right; |
| 339 | | right-casing-color: speed_70#ee8b00; |
| 340 | | } |
| 341 | | way["maxspeed:forward"="80"]:righthandtraffic::maxspeed, |
| 342 | | way["maxspeed:backward"="80"]!:righthandtraffic::maxspeed |
| 343 | | { |
| 344 | | set maxspeed_right; |
| 345 | | right-casing-color: speed_80#f90808; |
| 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 |
| 350 | | { |
| 351 | | set maxspeed_right; |
| 352 | | right-casing-color: speed_90#07f8f8; |
| 353 | | } |
| 354 | | way["maxspeed:forward"="100"]:righthandtraffic::maxspeed, |
| 355 | | way["maxspeed:backward"="100"]!:righthandtraffic::maxspeed |
| 356 | | { |
| 357 | | set maxspeed_right; |
| 358 | | right-casing-color: speed_100#f807f8; |
| 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 |
| 363 | | { |
| 364 | | set maxspeed_right; |
| 365 | | right-casing-color: speed_110#7807f8; |
| 366 | | } |
| 367 | | way["maxspeed:forward"="120"]:righthandtraffic::maxspeed, |
| 368 | | way["maxspeed:backward"="120"]!:righthandtraffic::maxspeed |
| 369 | | { |
| 370 | | set maxspeed_right; |
| 371 | | right-casing-color: speed_120#ccad24; |
| 372 | | } |
| 373 | | way["maxspeed:forward"="130"]:righthandtraffic::maxspeed, |
| 374 | | way["maxspeed:backward"="130"]!:righthandtraffic::maxspeed |
| 375 | | { |
| 376 | | set maxspeed_right; |
| 377 | | right-casing-color: speed_130#c0f100; |
| 378 | | } |
| 379 | | /* mph */ |
| 380 | | way["maxspeed:forward"="5 mph"]:righthandtraffic::maxspeed, |
| 381 | | way["maxspeed:backward"="5 mph"]!:righthandtraffic::maxspeed |
| 382 | | { |
| 383 | | set maxspeed_right; |
| 384 | | right-casing-color: speed_5_mph#b80022; |
| 385 | | } |
| 386 | | way["maxspeed:forward"="10 mph"]:righthandtraffic::maxspeed, |
| 387 | | way["maxspeed:backward"="10 mph"]!:righthandtraffic::maxspeed |
| 388 | | { |
| 389 | | set maxspeed_right; |
| 390 | | right-casing-color: speed_10_mph#00da8b; |
| 391 | | } |
| 392 | | way["maxspeed:forward"="15 mph"]:righthandtraffic::maxspeed, |
| 393 | | way["maxspeed:backward"="15 mph"]!:righthandtraffic::maxspeed |
| 394 | | { |
| 395 | | set maxspeed_right; |
| 396 | | right-casing-color: speed_15_mph#e3cc82; |
| 397 | | } |
| 398 | | way["maxspeed:forward"="20 mph"]:righthandtraffic::maxspeed, |
| 399 | | way["maxspeed:backward"="20 mph"]!:righthandtraffic::maxspeed |
| 400 | | { |
| 401 | | set maxspeed_right; |
| 402 | | right-casing-color: speed_20_mph#4d4dff; |
| 403 | | } |
| 404 | | way["maxspeed:forward"="25 mph"]:righthandtraffic::maxspeed, |
| 405 | | way["maxspeed:backward"="25 mph"]!:righthandtraffic::maxspeed |
| 406 | | { |
| 407 | | set maxspeed_right; |
| 408 | | right-casing-color: speed_25_mph#4d4d00; |
| 409 | | } |
| 410 | | way["maxspeed:forward"="30 mph"]:righthandtraffic::maxspeed, |
| 411 | | way["maxspeed:backward"="30 mph"]!:righthandtraffic::maxspeed |
| 412 | | { |
| 413 | | set maxspeed_right; |
| 414 | | right-casing-color: speed_30_mph#ff529a; |
| 415 | | } |
| 416 | | way["maxspeed:forward"="35 mph"]:righthandtraffic::maxspeed, |
| 417 | | way["maxspeed:backward"="35 mph"]!:righthandtraffic::maxspeed |
| 418 | | { |
| 419 | | set maxspeed_right; |
| 420 | | right-casing-color: speed_35_mph#07f807; |
| 421 | | } |
| 422 | | way["maxspeed:forward"="40 mph"]:righthandtraffic::maxspeed, |
| 423 | | way["maxspeed:backward"="40 mph"]!:righthandtraffic::maxspeed |
| 424 | | { |
| 425 | | set maxspeed_right; |
| 426 | | right-casing-color: speed_40_mph#9f9fff; |
| 427 | | } |
| 428 | | way["maxspeed:forward"="45 mph"]:righthandtraffic::maxspeed, |
| 429 | | way["maxspeed:backward"="45 mph"]!:righthandtraffic::maxspeed |
| 430 | | { |
| 431 | | set maxspeed_right; |
| 432 | | right-casing-color: speed_45_mph#ee8b00; |
| 433 | | } |
| 434 | | way["maxspeed:forward"="50 mph"]:righthandtraffic::maxspeed, |
| 435 | | way["maxspeed:backward"="50 mph"]!:righthandtraffic::maxspeed |
| 436 | | { |
| 437 | | set maxspeed_right; |
| 438 | | right-casing-color: speed_50_mph#f90808; |
| 439 | | } |
| 440 | | way["maxspeed:forward"="55 mph"]:righthandtraffic::maxspeed, |
| 441 | | way["maxspeed:backward"="55 mph"]!:righthandtraffic::maxspeed |
| 442 | | { |
| 443 | | set maxspeed_right; |
| 444 | | right-casing-color: speed_55_mph#07f8f8; |
| 445 | | } |
| 446 | | way["maxspeed:forward"="60 mph"]:righthandtraffic::maxspeed, |
| 447 | | way["maxspeed:backward"="60 mph"]!:righthandtraffic::maxspeed |
| 448 | | { |
| 449 | | set maxspeed_right; |
| 450 | | right-casing-color: speed_60_mph#f807f8; |
| 451 | | } |
| 452 | | way["maxspeed:forward"="65 mph"]:righthandtraffic::maxspeed, |
| 453 | | way["maxspeed:backward"="65 mph"]!:righthandtraffic::maxspeed |
| 454 | | { |
| 455 | | set maxspeed_right; |
| 456 | | right-casing-color: speed_65_mph#7807f8; |
| 457 | | } |
| 458 | | way["maxspeed:forward"="70 mph"]:righthandtraffic::maxspeed, |
| 459 | | way["maxspeed:backward"="70 mph"]!:righthandtraffic::maxspeed |
| 460 | | { |
| 461 | | set maxspeed_right; |
| 462 | | right-casing-color: speed_70_mph#ccad24; |
| 463 | | } |
| 464 | | way["maxspeed:forward"="75 mph"]:righthandtraffic::maxspeed, |
| 465 | | way["maxspeed:backward"="75 mph"]!:righthandtraffic::maxspeed |
| 466 | | { |
| 467 | | set maxspeed_right; |
| 468 | | right-casing-color: speed_75_mph#c0f100; |
| 469 | | } |
| 470 | | |
| 471 | | way.maxspeed_right::maxspeed |
| 472 | | { |
| 473 | | right-casing-opacity: 0.75; |
| 474 | | right-casing-width: 6; |
| 475 | | right-casing-offset: 0; |
| 476 | | } |
| 477 | | way|z16.maxspeed_right::maxspeed |
| 478 | | { |
| 479 | | right-casing-width: 5; |
| 480 | | } |
| 481 | | way|z-15.maxspeed_right::maxspeed |
| 482 | | { |
| 483 | | right-casing-width: 4; |
| 484 | | } |
| 485 | | way.maxspeed_right[maxspeed:variable:forward]:righthandtraffic::maxspeed, |
| 486 | | way.maxspeed_right[maxspeed:variable:backward]!:righthandtraffic::maxspeed |
| 487 | | { |
| 488 | | right-casing-dashes: 34,6; |
| | 235 | /* 3 - display maxspeed=* */ |
| | 236 | /* Note: With some modifications one could delete chapter three and one could use the casing rendering from forward and backward also for the default maxspeed=* rendering. |
| | 237 | This would simplify the style code a bit. However this leads to more asynchronous renderings of the dashes, see JOSM ticket #11994. |
| | 238 | Also it makes a nicer rendering for dashes lines, like highway=construction or railway=tram. |
| | 239 | Therefore the style is written this way. */ |
| | 240 | /* 3.1 - kmh */ |
| | 241 | way["maxspeed"="none"]::maxspeedlayer |
| | 242 | { |
| | 243 | set maxspeed; |
| | 244 | color: speed_none#febede; |
| | 245 | } |
| | 246 | way["maxspeed"="5"]::maxspeedlayer |
| | 247 | { |
| | 248 | set maxspeed; |
| | 249 | color: speed_5#ff5656; |
| | 250 | } |
| | 251 | way["maxspeed"="10"]::maxspeedlayer, |
| | 252 | way["maxspeed"="RS:living_street"][setting("implicit")]::maxspeedlayer |
| | 253 | { |
| | 254 | set maxspeed; |
| | 255 | color: speed_10#b80022; |
| | 256 | } |
| | 257 | way["maxspeed"="15"]::maxspeedlayer |
| | 258 | { |
| | 259 | set maxspeed; |
| | 260 | color: speed_15#00da8b; |
| | 261 | } |
| | 262 | way["maxspeed"="20"]::maxspeedlayer, |
| | 263 | way["maxspeed"="BY:living_street"][setting("implicit")]::maxspeedlayer, |
| | 264 | way["maxspeed"="RU:living_street"][setting("implicit")]::maxspeedlayer |
| | 265 | { |
| | 266 | set maxspeed; |
| | 267 | color: speed_20#e3cc82; |
| | 268 | } |
| | 269 | way["maxspeed"="30"]::maxspeedlayer, |
| | 270 | way["maxspeed"="FR:zone30"][setting("implicit")]::maxspeedlayer |
| | 271 | { |
| | 272 | set maxspeed; |
| | 273 | color: speed_30#4d4dff; |
| | 274 | } |
| | 275 | way["maxspeed"="40"]::maxspeedlayer |
| | 276 | { |
| | 277 | set maxspeed; |
| | 278 | color: speed_40#4d4d00; |
| | 279 | } |
| | 280 | way["maxspeed"="45"]::maxspeedlayer |
| | 281 | { |
| | 282 | set maxspeed; |
| | 283 | color: speed_45#fd6eaa; |
| | 284 | } |
| | 285 | way["maxspeed"="50"]::maxspeedlayer, |
| | 286 | way["maxspeed"="FR:urban"][setting("implicit")]::maxspeedlayer, |
| | 287 | way["maxspeed"="RO:urban"][setting("implicit")]::maxspeedlayer, |
| | 288 | way["maxspeed"="RS:urban"][setting("implicit")]::maxspeedlayer |
| | 289 | { |
| | 290 | set maxspeed; |
| | 291 | color: speed_50#07f807; |
| | 292 | } |
| | 293 | way["maxspeed"="60"]::maxspeedlayer, |
| | 294 | way["maxspeed"="BY:urban"][setting("implicit")]::maxspeedlayer, |
| | 295 | way["maxspeed"="RU:urban"][setting("implicit")]::maxspeedlayer |
| | 296 | { |
| | 297 | set maxspeed; |
| | 298 | color: speed_60#9f9fff; |
| | 299 | } |
| | 300 | way["maxspeed"="70"]::maxspeedlayer |
| | 301 | { |
| | 302 | set maxspeed; |
| | 303 | color: speed_70#ee8b00; |
| | 304 | } |
| | 305 | way["maxspeed"="80"]::maxspeedlayer, |
| | 306 | way["maxspeed"="FR:rural"][setting("implicit")]::maxspeedlayer, |
| | 307 | way["maxspeed"="RS:rural"][setting("implicit")]::maxspeedlayer |
| | 308 | { |
| | 309 | set maxspeed; |
| | 310 | color: speed_80#f90808; |
| | 311 | } |
| | 312 | way["maxspeed"="90"]::maxspeedlayer, |
| | 313 | way["maxspeed"="BY:rural"][setting("implicit")]::maxspeedlayer, |
| | 314 | way["maxspeed"="RO:rural"][setting("implicit")]::maxspeedlayer, |
| | 315 | way["maxspeed"="RU:rural"][setting("implicit")]::maxspeedlayer |
| | 316 | { |
| | 317 | set maxspeed; |
| | 318 | color: speed_90#07f8f8; |
| | 319 | } |
| | 320 | way["maxspeed"="100"]::maxspeedlayer, |
| | 321 | way["maxspeed"="RO:trunk"][setting("implicit")]::maxspeedlayer, |
| | 322 | way["maxspeed"="RS:trunk"][setting("implicit")]::maxspeedlayer |
| | 323 | { |
| | 324 | set maxspeed; |
| | 325 | color: speed_100#f807f8; |
| | 326 | } |
| | 327 | way["maxspeed"="110"]::maxspeedlayer, |
| | 328 | way["maxspeed"="BY:motorway"][setting("implicit")]::maxspeedlayer, |
| | 329 | way["maxspeed"="RU:motorway"][setting("implicit")]::maxspeedlayer |
| | 330 | { |
| | 331 | set maxspeed; |
| | 332 | color: speed_110#7807f8; |
| | 333 | } |
| | 334 | way["maxspeed"="120"]::maxspeedlayer |
| | 335 | { |
| | 336 | set maxspeed; |
| | 337 | color: speed_120#b69b20; |
| | 338 | } |
| | 339 | way["maxspeed"="130"]::maxspeedlayer, |
| | 340 | way["maxspeed"="FR:motorway"][setting("implicit")]::maxspeedlayer, |
| | 341 | way["maxspeed"="RO:motorway"][setting("implicit")]::maxspeedlayer, |
| | 342 | way["maxspeed"="RS:motorway"][setting("implicit")]::maxspeedlayer |
| | 343 | { |
| | 344 | set maxspeed; |
| | 345 | color: speed_130#c0f100; |
| | 346 | } |
| | 347 | way["maxspeed"="140"]::maxspeedlayer |
| | 348 | { |
| | 349 | set maxspeed; |
| | 350 | color: speed_140#438100; |
| | 351 | } |
| | 352 | /* 3.2 - mph */ |
| | 353 | way["maxspeed"="5 mph"]::maxspeedlayer |
| | 354 | { |
| | 355 | set maxspeed; |
| | 356 | color: speed_5_mph#b80022; |
| | 357 | } |
| | 358 | way["maxspeed"="10 mph"]::maxspeedlayer |
| | 359 | { |
| | 360 | set maxspeed; |
| | 361 | color: speed_10_mph#00da8b; |
| | 362 | } |
| | 363 | way["maxspeed"="15 mph"]::maxspeedlayer |
| | 364 | { |
| | 365 | set maxspeed; |
| | 366 | color: speed_15_mph#e3cc82; |
| | 367 | } |
| | 368 | way["maxspeed"="20 mph"]::maxspeedlayer |
| | 369 | { |
| | 370 | set maxspeed; |
| | 371 | color: speed_20_mph#4d4dff; |
| | 372 | } |
| | 373 | way["maxspeed"="25 mph"]::maxspeedlayer |
| | 374 | { |
| | 375 | set maxspeed; |
| | 376 | color: speed_25_mph#4d4d00; |
| | 377 | } |
| | 378 | way["maxspeed"="30 mph"]::maxspeedlayer |
| | 379 | { |
| | 380 | set maxspeed; |
| | 381 | color: speed_30_mph#fd6eaa; |
| | 382 | } |
| | 383 | way["maxspeed"="35 mph"]::maxspeedlayer |
| | 384 | { |
| | 385 | set maxspeed; |
| | 386 | color: speed_35_mph#07f807; |
| | 387 | } |
| | 388 | way["maxspeed"="40 mph"]::maxspeedlayer |
| | 389 | { |
| | 390 | set maxspeed; |
| | 391 | color: speed_40_mph#9f9fff; |
| | 392 | } |
| | 393 | way["maxspeed"="45 mph"]::maxspeedlayer |
| | 394 | { |
| | 395 | set maxspeed; |
| | 396 | color: speed_45_mph#ee8b00; |
| | 397 | } |
| | 398 | way["maxspeed"="50 mph"]::maxspeedlayer |
| | 399 | { |
| | 400 | set maxspeed; |
| | 401 | color: speed_50_mph#f90808; |
| | 402 | } |
| | 403 | way["maxspeed"="55 mph"]::maxspeedlayer |
| | 404 | { |
| | 405 | set maxspeed; |
| | 406 | color: speed_55_mph#07f8f8; |
| | 407 | } |
| | 408 | way["maxspeed"="60 mph"]::maxspeedlayer |
| | 409 | { |
| | 410 | set maxspeed; |
| | 411 | color: speed_60_mph#f807f8; |
| | 412 | } |
| | 413 | way["maxspeed"="65 mph"]::maxspeedlayer |
| | 414 | { |
| | 415 | set maxspeed; |
| | 416 | color: speed_65_mph#7807f8; |
| | 417 | } |
| | 418 | way["maxspeed"="70 mph"]::maxspeedlayer |
| | 419 | { |
| | 420 | set maxspeed; |
| | 421 | color: speed_70_mph#b69b20; |
| | 422 | } |
| | 423 | way["maxspeed"="75 mph"]::maxspeedlayer |
| | 424 | { |
| | 425 | set maxspeed; |
| | 426 | color: speed_75_mph#c0f100; |
| | 427 | } |
| | 428 | way["maxspeed"="80 mph"]::maxspeedlayer |
| | 429 | { |
| | 430 | set maxspeed; |
| | 431 | color: speed_80_mph#438100; |
| | 432 | } |
| | 433 | way["maxspeed"="85 mph"]::maxspeedlayer |
| | 434 | { |
| | 435 | set maxspeed; |
| | 436 | color: speed_85_mph#725600; |
| | 437 | } |
| | 438 | |
| | 439 | /* 3.3 - conditional maxspeed */ |
| | 440 | way.cond_kmh::maxspeedlayer, |
| | 441 | way.cond_mph::maxspeedlayer |
| | 442 | { |
| | 443 | dashes: 55,25; |
| | 444 | } |
| | 445 | /* 3.3.1 - kmh */ |
| | 446 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="none"]::maxspeedlayer |
| | 447 | { |
| | 448 | dashes-background-color: speed_none#febede; |
| | 449 | } |
| | 450 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="5"]::maxspeedlayer |
| | 451 | { |
| | 452 | dashes-background-color: speed_5#ff5656; |
| | 453 | } |
| | 454 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="10"]::maxspeedlayer |
| | 455 | { |
| | 456 | dashes-background-color: speed_10#b80022; |
| | 457 | } |
| | 458 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="15"]::maxspeedlayer |
| | 459 | { |
| | 460 | dashes-background-color: speed_15#00da8b; |
| | 461 | } |
| | 462 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="20"]::maxspeedlayer |
| | 463 | /* A selector for implicit scheme is not needed here because e.g. "maxspeed:conditional=RU:living_street @ (...)" is nonsense, better use the actual maxspeed value in this case. The same is true for the others (rural, urban, motorway, ...). */ |
| | 464 | { |
| | 465 | dashes-background-color: speed_20#e3cc82; |
| | 466 | } |
| | 467 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="30"]::maxspeedlayer |
| | 468 | { |
| | 469 | dashes-background-color: speed_30#4d4dff; |
| | 470 | } |
| | 471 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="40"]::maxspeedlayer |
| | 472 | { |
| | 473 | dashes-background-color: speed_40#4d4d00; |
| | 474 | } |
| | 475 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="45"]::maxspeedlayer |
| | 476 | { |
| | 477 | dashes-background-color: speed_45#fd6eaa; |
| | 478 | } |
| | 479 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="50"]::maxspeedlayer |
| | 480 | { |
| | 481 | dashes-background-color: speed_50#07f807; |
| | 482 | } |
| | 483 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="60"]::maxspeedlayer |
| | 484 | { |
| | 485 | dashes-background-color: speed_60#9f9fff; |
| | 486 | } |
| | 487 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="70"]::maxspeedlayer |
| | 488 | { |
| | 489 | dashes-background-color: speed_70#ee8b00; |
| | 490 | } |
| | 491 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="80"]::maxspeedlayer |
| | 492 | { |
| | 493 | dashes-background-color: speed_80#f90808; |
| | 494 | } |
| | 495 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="90"]::maxspeedlayer |
| | 496 | { |
| | 497 | dashes-background-color: speed_90#07f8f8; |
| | 498 | } |
| | 499 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="100"]::maxspeedlayer |
| | 500 | { |
| | 501 | dashes-background-color: speed_100#f807f8; |
| | 502 | } |
| | 503 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="110"]::maxspeedlayer |
| | 504 | { |
| | 505 | dashes-background-color: speed_110#7807f8; |
| | 506 | } |
| | 507 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="120"]::maxspeedlayer |
| | 508 | { |
| | 509 | dashes-background-color: speed_120#b69b20; |
| | 510 | } |
| | 511 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="130"]::maxspeedlayer |
| | 512 | { |
| | 513 | dashes-background-color: speed_130#c0f100; |
| | 514 | } |
| | 515 | way.cond_kmh[prop(maxsp_cond, maxspeedlayer)="140"]::maxspeedlayer |
| | 516 | { |
| | 517 | dashes-background-color: speed_140#438100; |
| | 518 | } |
| | 519 | /* 3.3.2 - mph */ |
| | 520 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="5"]::maxspeedlayer |
| | 521 | { |
| | 522 | dashes-background-color: speed_5_mph#b80022; |
| | 523 | } |
| | 524 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="10"]::maxspeedlayer |
| | 525 | { |
| | 526 | dashes-background-color: speed_10_mph#00da8b; |
| | 527 | } |
| | 528 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="15"]::maxspeedlayer |
| | 529 | { |
| | 530 | dashes-background-color: speed_15_mph#e3cc82; |
| | 531 | } |
| | 532 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="20"]::maxspeedlayer |
| | 533 | { |
| | 534 | dashes-background-color: speed_20_mph#4d4dff; |
| | 535 | } |
| | 536 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="25"]::maxspeedlayer |
| | 537 | { |
| | 538 | dashes-background-color: speed_25_mph#4d4d00; |
| | 539 | } |
| | 540 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="30"]::maxspeedlayer |
| | 541 | { |
| | 542 | dashes-background-color: speed_30_mph#fd6eaa; |
| | 543 | } |
| | 544 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="35"]::maxspeedlayer |
| | 545 | { |
| | 546 | dashes-background-color: speed_35_mph#07f807; |
| | 547 | } |
| | 548 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="40"]::maxspeedlayer |
| | 549 | { |
| | 550 | dashes-background-color: speed_40_mph#9f9fff; |
| | 551 | } |
| | 552 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="45"]::maxspeedlayer |
| | 553 | { |
| | 554 | dashes-background-color: speed_45_mph#ee8b00; |
| | 555 | } |
| | 556 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="50"]::maxspeedlayer |
| | 557 | { |
| | 558 | dashes-background-color: speed_50_mph#f90808; |
| | 559 | } |
| | 560 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="55"]::maxspeedlayer |
| | 561 | { |
| | 562 | dashes-background-color: speed_55_mph#07f8f8; |
| | 563 | } |
| | 564 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="60"]::maxspeedlayer |
| | 565 | { |
| | 566 | dashes-background-color: speed_60_mph#f807f8; |
| | 567 | } |
| | 568 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="65"]::maxspeedlayer |
| | 569 | { |
| | 570 | dashes-background-color: speed_65_mph#7807f8; |
| | 571 | } |
| | 572 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="70"]::maxspeedlayer |
| | 573 | { |
| | 574 | dashes-background-color: speed_70_mph#b69b20; |
| | 575 | } |
| | 576 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="75"]::maxspeedlayer |
| | 577 | { |
| | 578 | dashes-background-color: speed_75_mph#c0f100; |
| | 579 | } |
| | 580 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="80"]::maxspeedlayer |
| | 581 | { |
| | 582 | dashes-background-color: speed_80_mph#438100; |
| | 583 | } |
| | 584 | way.cond_mph[prop(maxsp_cond, maxspeedlayer)="85"]::maxspeedlayer |
| | 585 | { |
| | 586 | dashes-background-color: speed_85_mph#725600; |
| | 587 | } |
| | 588 | |
| | 589 | /* 3.4 - general rules */ |
| | 590 | way.maxspeed::maxspeedlayer |
| | 591 | { |
| | 592 | width: 14; |
| | 593 | z-index: -1; |
| | 594 | } |
| | 595 | way|z16.maxspeed::maxspeedlayer |
| | 596 | { |
| | 597 | width: 12; |
| | 598 | } |
| | 599 | way|z-15.maxspeed::maxspeedlayer |
| | 600 | { |
| | 601 | width:10; |
| | 602 | } |
| | 603 | way.maxspeed[maxspeed:variable]::maxspeedlayer |
| | 604 | { |
| | 605 | dashes: 34,6; |
| | 606 | /* *variable* overrides the dashes scheme of *conditional*, but the colors of conditional stay. |
| | 607 | This way you can see conditional and variable together */ |
| 493 | | /* display maxspeed:forward=* for lefthandtraffic */ |
| 494 | | /* display maxspeed:backward=* for righthandtraffic */ |
| 495 | | |
| 496 | | way["maxspeed:forward"="none"]!:righthandtraffic::maxspeed, |
| 497 | | way["maxspeed:backward"="none"]:righthandtraffic::maxspeed |
| 498 | | { |
| 499 | | set maxspeed_left; |
| 500 | | left-casing-color: speed_none#febede; |
| 501 | | } |
| 502 | | /* km/h */ |
| 503 | | way["maxspeed:forward"="5"]!:righthandtraffic::maxspeed, |
| 504 | | way["maxspeed:backward"="5"]:righthandtraffic::maxspeed |
| 505 | | { |
| 506 | | set maxspeed_left; |
| 507 | | left-casing-color: speed_5#ff5656; |
| 508 | | } |
| 509 | | way["maxspeed:forward"="10"]!:righthandtraffic::maxspeed, |
| 510 | | way["maxspeed:backward"="10"]:righthandtraffic::maxspeed |
| 511 | | { |
| 512 | | set maxspeed_left; |
| 513 | | left-casing-color: speed_10#b80022; |
| 514 | | } |
| 515 | | way["maxspeed:forward"="15"]!:righthandtraffic::maxspeed, |
| 516 | | way["maxspeed:backward"="15"]:righthandtraffic::maxspeed |
| 517 | | { |
| 518 | | set maxspeed_left; |
| 519 | | left-casing-color: speed_15#00da8b; |
| 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 |
| 524 | | { |
| 525 | | set maxspeed_left; |
| 526 | | left-casing-color: speed_20#e3cc82; |
| 527 | | } |
| 528 | | way["maxspeed:forward"="30"]!:righthandtraffic::maxspeed, |
| 529 | | way["maxspeed:backward"="30"]:righthandtraffic::maxspeed |
| 530 | | { |
| 531 | | set maxspeed_left; |
| 532 | | left-casing-color: speed_30#4d4dff; |
| 533 | | } |
| 534 | | way["maxspeed:forward"="40"]!:righthandtraffic::maxspeed, |
| 535 | | way["maxspeed:backward"="40"]:righthandtraffic::maxspeed |
| 536 | | { |
| 537 | | set maxspeed_left; |
| 538 | | left-casing-color: speed_40#4d4d00; |
| 539 | | } |
| 540 | | way["maxspeed:forward"="45"]!:righthandtraffic::maxspeed, |
| 541 | | way["maxspeed:backward"="45"]:righthandtraffic::maxspeed |
| 542 | | { |
| 543 | | set maxspeed_left; |
| 544 | | left-casing-color: speed_45#ff529a; |
| 545 | | } |
| 546 | | way["maxspeed:forward"="50"]!:righthandtraffic::maxspeed, |
| 547 | | way["maxspeed:backward"="50"]:righthandtraffic::maxspeed |
| 548 | | { |
| 549 | | set maxspeed_left; |
| 550 | | left-casing-color: speed_50#07f807; |
| 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 |
| 555 | | { |
| 556 | | set maxspeed_left; |
| 557 | | left-casing-color: speed_60#9f9fff; |
| 558 | | } |
| 559 | | way["maxspeed:forward"="70"]!:righthandtraffic::maxspeed, |
| 560 | | way["maxspeed:backward"="70"]:righthandtraffic::maxspeed |
| 561 | | { |
| 562 | | set maxspeed_left; |
| 563 | | left-casing-color: speed_70#ee8b00; |
| 564 | | } |
| 565 | | way["maxspeed:forward"="80"]!:righthandtraffic::maxspeed, |
| 566 | | way["maxspeed:backward"="80"]:righthandtraffic::maxspeed |
| 567 | | { |
| 568 | | set maxspeed_left; |
| 569 | | left-casing-color: speed_80#f90808; |
| 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 |
| 574 | | { |
| 575 | | set maxspeed_left; |
| 576 | | left-casing-color: speed_90#07f8f8; |
| 577 | | } |
| 578 | | way["maxspeed:forward"="100"]!:righthandtraffic::maxspeed, |
| 579 | | way["maxspeed:backward"="100"]:righthandtraffic::maxspeed |
| 580 | | { |
| 581 | | set maxspeed_left; |
| 582 | | left-casing-color: speed_100#f807f8; |
| 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 |
| 587 | | { |
| 588 | | set maxspeed_left; |
| 589 | | left-casing-color: speed_110#7807f8; |
| 590 | | } |
| 591 | | way["maxspeed:forward"="120"]!:righthandtraffic::maxspeed, |
| 592 | | way["maxspeed:backward"="120"]:righthandtraffic::maxspeed |
| 593 | | { |
| 594 | | set maxspeed_left; |
| 595 | | left-casing-color: speed_120#ccad24; |
| 596 | | } |
| 597 | | way["maxspeed:forward"="130"]!:righthandtraffic::maxspeed, |
| 598 | | way["maxspeed:backward"="130"]:righthandtraffic::maxspeed |
| 599 | | { |
| 600 | | set maxspeed_left; |
| 601 | | left-casing-color: speed_130#c0f100; |
| 602 | | } |
| 603 | | /* mph */ |
| 604 | | way["maxspeed:forward"="5 mph"]!:righthandtraffic::maxspeed, |
| 605 | | way["maxspeed:backward"="5 mph"]:righthandtraffic::maxspeed |
| 606 | | { |
| 607 | | set maxspeed_left; |
| 608 | | left-casing-color: speed_5_mph#b80022; |
| 609 | | } |
| 610 | | way["maxspeed:forward"="10 mph"]!:righthandtraffic::maxspeed, |
| 611 | | way["maxspeed:backward"="10 mph"]:righthandtraffic::maxspeed |
| 612 | | { |
| 613 | | set maxspeed_left; |
| 614 | | left-casing-color: speed_10_mph#00da8b; |
| 615 | | } |
| 616 | | way["maxspeed:forward"="15 mph"]!:righthandtraffic::maxspeed, |
| 617 | | way["maxspeed:backward"="15 mph"]:righthandtraffic::maxspeed |
| 618 | | { |
| 619 | | set maxspeed_left; |
| 620 | | left-casing-color: speed_15_mph#e3cc82; |
| 621 | | } |
| 622 | | way["maxspeed:forward"="20 mph"]!:righthandtraffic::maxspeed, |
| 623 | | way["maxspeed:backward"="20 mph"]:righthandtraffic::maxspeed |
| 624 | | { |
| 625 | | set maxspeed_left; |
| 626 | | left-casing-color: speed_20_mph#4d4dff; |
| 627 | | } |
| 628 | | way["maxspeed:forward"="25 mph"]!:righthandtraffic::maxspeed, |
| 629 | | way["maxspeed:backward"="25 mph"]:righthandtraffic::maxspeed |
| 630 | | { |
| 631 | | set maxspeed_left; |
| 632 | | left-casing-color: speed_25_mph#4d4d00; |
| 633 | | } |
| 634 | | way["maxspeed:forward"="30 mph"]!:righthandtraffic::maxspeed, |
| 635 | | way["maxspeed:backward"="30 mph"]:righthandtraffic::maxspeed |
| 636 | | { |
| 637 | | set maxspeed_left; |
| 638 | | left-casing-color: speed_30_mph#ff529a; |
| 639 | | } |
| 640 | | way["maxspeed:forward"="35 mph"]!:righthandtraffic::maxspeed, |
| 641 | | way["maxspeed:backward"="35 mph"]:righthandtraffic::maxspeed |
| 642 | | { |
| 643 | | set maxspeed_left; |
| 644 | | left-casing-color: speed_35_mph#07f807; |
| 645 | | } |
| 646 | | way["maxspeed:forward"="40 mph"]!:righthandtraffic::maxspeed, |
| 647 | | way["maxspeed:backward"="40 mph"]:righthandtraffic::maxspeed |
| 648 | | { |
| 649 | | set maxspeed_left; |
| 650 | | left-casing-color: speed_40_mph#9f9fff; |
| 651 | | } |
| 652 | | way["maxspeed:forward"="45 mph"]!:righthandtraffic::maxspeed, |
| 653 | | way["maxspeed:backward"="45 mph"]:righthandtraffic::maxspeed |
| 654 | | { |
| 655 | | set maxspeed_left; |
| 656 | | left-casing-color: speed_45_mph#ee8b00; |
| 657 | | } |
| 658 | | way["maxspeed:forward"="50 mph"]!:righthandtraffic::maxspeed, |
| 659 | | way["maxspeed:backward"="50 mph"]:righthandtraffic::maxspeed |
| 660 | | { |
| 661 | | set maxspeed_left; |
| 662 | | left-casing-color: speed_50_mph#f90808; |
| 663 | | } |
| 664 | | way["maxspeed:forward"="55 mph"]!:righthandtraffic::maxspeed, |
| 665 | | way["maxspeed:backward"="55 mph"]:righthandtraffic::maxspeed |
| 666 | | { |
| 667 | | set maxspeed_left; |
| 668 | | left-casing-color: speed_55_mph#07f8f8; |
| 669 | | } |
| 670 | | way["maxspeed:forward"="60 mph"]!:righthandtraffic::maxspeed, |
| 671 | | way["maxspeed:backward"="60 mph"]:righthandtraffic::maxspeed |
| 672 | | { |
| 673 | | set maxspeed_left; |
| 674 | | left-casing-color: speed_60_mph#f807f8; |
| 675 | | } |
| 676 | | way["maxspeed:forward"="65 mph"]!:righthandtraffic::maxspeed, |
| 677 | | way["maxspeed:backward"="65 mph"]:righthandtraffic::maxspeed |
| 678 | | { |
| 679 | | set maxspeed_left; |
| 680 | | left-casing-color: speed_65_mph#7807f8; |
| 681 | | } |
| 682 | | way["maxspeed:forward"="70 mph"]!:righthandtraffic::maxspeed, |
| 683 | | way["maxspeed:backward"="70 mph"]:righthandtraffic::maxspeed |
| 684 | | { |
| 685 | | set maxspeed_left; |
| 686 | | left-casing-color: speed_70_mph#ccad24; |
| 687 | | } |
| 688 | | way["maxspeed:forward"="75 mph"]!:righthandtraffic::maxspeed, |
| 689 | | way["maxspeed:backward"="75 mph"]:righthandtraffic::maxspeed |
| 690 | | { |
| 691 | | set maxspeed_left; |
| 692 | | left-casing-color: speed_75_mph#c0f100; |
| 693 | | } |
| 694 | | |
| 695 | | way.maxspeed_left::maxspeed |
| 696 | | { |
| 697 | | left-casing-opacity: 0.75; |
| 698 | | left-casing-width: 6; |
| 699 | | left-casing-offset: 0; |
| 700 | | } |
| 701 | | way|z16.maxspeed_left::maxspeed |
| 702 | | { |
| 703 | | left-casing-width: 5; |
| 704 | | } |
| 705 | | way|z-15.maxspeed_left::maxspeed |
| 706 | | { |
| 707 | | left-casing-width: 4; |
| 708 | | } |
| 709 | | way.maxspeed_left[maxspeed:variable:forward]!:righthandtraffic::maxspeed, |
| 710 | | way.maxspeed_left[maxspeed:variable:backward]:righthandtraffic::maxspeed |
| 711 | | { |
| 712 | | left-casing-dashes: 34,6; |
| | 612 | /* 4 - display maxspeed:forward=* for righthandtraffic and maxspeed:backward=* for lefthandtraffic */ |
| | 613 | /* 4.1 - kmh */ |
| | 614 | way["maxspeed:forward"="none"]:righthandtraffic::maxspeedcasinglayer, |
| | 615 | way["maxspeed:backward"="none"]!:righthandtraffic::maxspeedcasinglayer |
| | 616 | { |
| | 617 | set maxspeed_right; |
| | 618 | right-casing-color: speed_none#febede; |
| | 619 | } |
| | 620 | way["maxspeed:forward"="5"]:righthandtraffic::maxspeedcasinglayer, |
| | 621 | way["maxspeed:backward"="5"]!:righthandtraffic::maxspeedcasinglayer |
| | 622 | { |
| | 623 | set maxspeed_right; |
| | 624 | right-casing-color: speed_5#ff5656; |
| | 625 | } |
| | 626 | way["maxspeed:forward"="10"]:righthandtraffic::maxspeedcasinglayer, |
| | 627 | way["maxspeed:backward"="10"]!:righthandtraffic::maxspeedcasinglayer, |
| | 628 | way["maxspeed:forward"="RS:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 629 | { |
| | 630 | set maxspeed_right; |
| | 631 | right-casing-color: speed_10#b80022; |
| | 632 | } |
| | 633 | way["maxspeed:forward"="15"]:righthandtraffic::maxspeedcasinglayer, |
| | 634 | way["maxspeed:backward"="15"]!:righthandtraffic::maxspeedcasinglayer |
| | 635 | { |
| | 636 | set maxspeed_right; |
| | 637 | right-casing-color: speed_15#00da8b; |
| | 638 | } |
| | 639 | way["maxspeed:forward"="20"]:righthandtraffic::maxspeedcasinglayer, |
| | 640 | way["maxspeed:backward"="20"]!:righthandtraffic::maxspeedcasinglayer, |
| | 641 | way["maxspeed:forward"="BY:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 642 | way["maxspeed:forward"="RU:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 643 | /* no left hand traffic in BY, FR, RO, RU, RS, so a selector is not needed here and the similar rules in chapter 5.1 */ |
| | 644 | { |
| | 645 | set maxspeed_right; |
| | 646 | right-casing-color: speed_20#e3cc82; |
| | 647 | } |
| | 648 | way["maxspeed:forward"="30"]:righthandtraffic::maxspeedcasinglayer, |
| | 649 | way["maxspeed:backward"="30"]!:righthandtraffic::maxspeedcasinglayer, |
| | 650 | way["maxspeed:forward"="FR:zone30"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 651 | { |
| | 652 | set maxspeed_right; |
| | 653 | right-casing-color: speed_30#4d4dff; |
| | 654 | } |
| | 655 | way["maxspeed:forward"="40"]:righthandtraffic::maxspeedcasinglayer, |
| | 656 | way["maxspeed:backward"="40"]!:righthandtraffic::maxspeedcasinglayer |
| | 657 | { |
| | 658 | set maxspeed_right; |
| | 659 | right-casing-color: speed_40#4d4d00; |
| | 660 | } |
| | 661 | way["maxspeed:forward"="45"]:righthandtraffic::maxspeedcasinglayer, |
| | 662 | way["maxspeed:backward"="45"]!:righthandtraffic::maxspeedcasinglayer |
| | 663 | { |
| | 664 | set maxspeed_right; |
| | 665 | right-casing-color: speed_45#fd6eaa; |
| | 666 | } |
| | 667 | way["maxspeed:forward"="50"]:righthandtraffic::maxspeedcasinglayer, |
| | 668 | way["maxspeed:backward"="50"]!:righthandtraffic::maxspeedcasinglayer, |
| | 669 | way["maxspeed:forward"="FR:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 670 | way["maxspeed:forward"="RO:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 671 | way["maxspeed:forward"="RS:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 672 | { |
| | 673 | set maxspeed_right; |
| | 674 | right-casing-color: speed_50#07f807; |
| | 675 | } |
| | 676 | way["maxspeed:forward"="60"]:righthandtraffic::maxspeedcasinglayer, |
| | 677 | way["maxspeed:backward"="60"]!:righthandtraffic::maxspeedcasinglayer, |
| | 678 | way["maxspeed:forward"="BY:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 679 | way["maxspeed:forward"="RU:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 680 | { |
| | 681 | set maxspeed_right; |
| | 682 | right-casing-color: speed_60#9f9fff; |
| | 683 | } |
| | 684 | way["maxspeed:forward"="70"]:righthandtraffic::maxspeedcasinglayer, |
| | 685 | way["maxspeed:backward"="70"]!:righthandtraffic::maxspeedcasinglayer |
| | 686 | { |
| | 687 | set maxspeed_right; |
| | 688 | right-casing-color: speed_70#ee8b00; |
| | 689 | } |
| | 690 | way["maxspeed:forward"="80"]:righthandtraffic::maxspeedcasinglayer, |
| | 691 | way["maxspeed:backward"="80"]!:righthandtraffic::maxspeedcasinglayer, |
| | 692 | way["maxspeed:forward"="FR:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 693 | way["maxspeed:forward"="RS:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 694 | { |
| | 695 | set maxspeed_right; |
| | 696 | right-casing-color: speed_80#f90808; |
| | 697 | } |
| | 698 | way["maxspeed:forward"="90"]:righthandtraffic::maxspeedcasinglayer, |
| | 699 | way["maxspeed:backward"="90"]!:righthandtraffic::maxspeedcasinglayer, |
| | 700 | way["maxspeed:forward"="BY:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 701 | way["maxspeed:forward"="RO:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 702 | way["maxspeed:forward"="RU:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 703 | { |
| | 704 | set maxspeed_right; |
| | 705 | right-casing-color: speed_90#07f8f8; |
| | 706 | } |
| | 707 | way["maxspeed:forward"="100"]:righthandtraffic::maxspeedcasinglayer, |
| | 708 | way["maxspeed:backward"="100"]!:righthandtraffic::maxspeedcasinglayer, |
| | 709 | way["maxspeed:forward"="RO:trunk"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 710 | way["maxspeed:forward"="RS:trunk"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 711 | { |
| | 712 | set maxspeed_right; |
| | 713 | right-casing-color: speed_100#f807f8; |
| | 714 | } |
| | 715 | way["maxspeed:forward"="110"]:righthandtraffic::maxspeedcasinglayer, |
| | 716 | way["maxspeed:backward"="110"]!:righthandtraffic::maxspeedcasinglayer, |
| | 717 | way["maxspeed:forward"="BY:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 718 | way["maxspeed:forward"="RU:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 719 | { |
| | 720 | set maxspeed_right; |
| | 721 | right-casing-color: speed_110#7807f8; |
| | 722 | } |
| | 723 | way["maxspeed:forward"="120"]:righthandtraffic::maxspeedcasinglayer, |
| | 724 | way["maxspeed:backward"="120"]!:righthandtraffic::maxspeedcasinglayer |
| | 725 | { |
| | 726 | set maxspeed_right; |
| | 727 | right-casing-color: speed_120#b69b20; |
| | 728 | } |
| | 729 | way["maxspeed:forward"="130"]:righthandtraffic::maxspeedcasinglayer, |
| | 730 | way["maxspeed:backward"="130"]!:righthandtraffic::maxspeedcasinglayer, |
| | 731 | way["maxspeed:forward"="FR:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 732 | way["maxspeed:forward"="RO:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 733 | way["maxspeed:forward"="RS:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 734 | { |
| | 735 | set maxspeed_right; |
| | 736 | right-casing-color: speed_130#c0f100; |
| | 737 | } |
| | 738 | way["maxspeed:forward"="140"]:righthandtraffic::maxspeedcasinglayer, |
| | 739 | way["maxspeed:backward"="140"]!:righthandtraffic::maxspeedcasinglayer |
| | 740 | { |
| | 741 | set maxspeed_right; |
| | 742 | right-casing-color: speed_140#438100; |
| | 743 | } |
| | 744 | /* 4.2 - mph */ |
| | 745 | way["maxspeed:forward"="5 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 746 | way["maxspeed:backward"="5 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 747 | { |
| | 748 | set maxspeed_right; |
| | 749 | right-casing-color: speed_5_mph#b80022; |
| | 750 | } |
| | 751 | way["maxspeed:forward"="10 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 752 | way["maxspeed:backward"="10 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 753 | { |
| | 754 | set maxspeed_right; |
| | 755 | right-casing-color: speed_10_mph#00da8b; |
| | 756 | } |
| | 757 | way["maxspeed:forward"="15 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 758 | way["maxspeed:backward"="15 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 759 | { |
| | 760 | set maxspeed_right; |
| | 761 | right-casing-color: speed_15_mph#e3cc82; |
| | 762 | } |
| | 763 | way["maxspeed:forward"="20 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 764 | way["maxspeed:backward"="20 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 765 | { |
| | 766 | set maxspeed_right; |
| | 767 | right-casing-color: speed_20_mph#4d4dff; |
| | 768 | } |
| | 769 | way["maxspeed:forward"="25 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 770 | way["maxspeed:backward"="25 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 771 | { |
| | 772 | set maxspeed_right; |
| | 773 | right-casing-color: speed_25_mph#4d4d00; |
| | 774 | } |
| | 775 | way["maxspeed:forward"="30 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 776 | way["maxspeed:backward"="30 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 777 | { |
| | 778 | set maxspeed_right; |
| | 779 | right-casing-color: speed_30_mph#fd6eaa; |
| | 780 | } |
| | 781 | way["maxspeed:forward"="35 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 782 | way["maxspeed:backward"="35 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 783 | { |
| | 784 | set maxspeed_right; |
| | 785 | right-casing-color: speed_35_mph#07f807; |
| | 786 | } |
| | 787 | way["maxspeed:forward"="40 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 788 | way["maxspeed:backward"="40 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 789 | { |
| | 790 | set maxspeed_right; |
| | 791 | right-casing-color: speed_40_mph#9f9fff; |
| | 792 | } |
| | 793 | way["maxspeed:forward"="45 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 794 | way["maxspeed:backward"="45 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 795 | { |
| | 796 | set maxspeed_right; |
| | 797 | right-casing-color: speed_45_mph#ee8b00; |
| | 798 | } |
| | 799 | way["maxspeed:forward"="50 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 800 | way["maxspeed:backward"="50 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 801 | { |
| | 802 | set maxspeed_right; |
| | 803 | right-casing-color: speed_50_mph#f90808; |
| | 804 | } |
| | 805 | way["maxspeed:forward"="55 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 806 | way["maxspeed:backward"="55 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 807 | { |
| | 808 | set maxspeed_right; |
| | 809 | right-casing-color: speed_55_mph#07f8f8; |
| | 810 | } |
| | 811 | way["maxspeed:forward"="60 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 812 | way["maxspeed:backward"="60 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 813 | { |
| | 814 | set maxspeed_right; |
| | 815 | right-casing-color: speed_60_mph#f807f8; |
| | 816 | } |
| | 817 | way["maxspeed:forward"="65 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 818 | way["maxspeed:backward"="65 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 819 | { |
| | 820 | set maxspeed_right; |
| | 821 | right-casing-color: speed_65_mph#7807f8; |
| | 822 | } |
| | 823 | way["maxspeed:forward"="70 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 824 | way["maxspeed:backward"="70 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 825 | { |
| | 826 | set maxspeed_right; |
| | 827 | right-casing-color: speed_70_mph#b69b20; |
| | 828 | } |
| | 829 | way["maxspeed:forward"="75 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 830 | way["maxspeed:backward"="75 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 831 | { |
| | 832 | set maxspeed_right; |
| | 833 | right-casing-color: speed_75_mph#c0f100; |
| | 834 | } |
| | 835 | way["maxspeed:forward"="80 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 836 | way["maxspeed:backward"="80 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 837 | { |
| | 838 | set maxspeed_right; |
| | 839 | right-casing-color: speed_80_mph#438100; |
| | 840 | } |
| | 841 | way["maxspeed:forward"="85 mph"]:righthandtraffic::maxspeedcasinglayer, |
| | 842 | way["maxspeed:backward"="85 mph"]!:righthandtraffic::maxspeedcasinglayer |
| | 843 | { |
| | 844 | set maxspeed_right; |
| | 845 | right-casing-color: speed_85_mph#725600; |
| | 846 | } |
| | 847 | |
| | 848 | /* 4.3 - conditional righthand-forward and lefthand-backward maxspeed */ |
| | 849 | way.cond_forward_kmh:righthandtraffic::maxspeedcasinglayer, |
| | 850 | way.cond_backward_kmh!:righthandtraffic::maxspeedcasinglayer, |
| | 851 | way.cond_forward_mph:righthandtraffic::maxspeedcasinglayer, |
| | 852 | way.cond_backward_mph!:righthandtraffic::maxspeedcasinglayer |
| | 853 | { |
| | 854 | set maxspeed_right_cond; |
| | 855 | right-casing-dashes: 55,25; |
| | 856 | } |
| | 857 | /* 4.3.1 - kmh */ |
| | 858 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="none"]:righthandtraffic::maxspeedcasinglayer, |
| | 859 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="none"]!:righthandtraffic::maxspeedcasinglayer |
| | 860 | { |
| | 861 | right-casing-dashes-background-color: speed_none#febede; |
| | 862 | } |
| | 863 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="5"]:righthandtraffic::maxspeedcasinglayer, |
| | 864 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="5"]!:righthandtraffic::maxspeedcasinglayer |
| | 865 | { |
| | 866 | right-casing-dashes-background-color: speed_5#ff5656; |
| | 867 | } |
| | 868 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="10"]:righthandtraffic::maxspeedcasinglayer, |
| | 869 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="10"]!:righthandtraffic::maxspeedcasinglayer |
| | 870 | { |
| | 871 | right-casing-dashes-background-color: speed_10#b80022; |
| | 872 | } |
| | 873 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="15"]:righthandtraffic::maxspeedcasinglayer, |
| | 874 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="15"]!:righthandtraffic::maxspeedcasinglayer |
| | 875 | { |
| | 876 | right-casing-dashes-background-color: speed_15#00da8b; |
| | 877 | } |
| | 878 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="20"]:righthandtraffic::maxspeedcasinglayer, |
| | 879 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="20"]!:righthandtraffic::maxspeedcasinglayer |
| | 880 | { |
| | 881 | right-casing-dashes-background-color: speed_20#e3cc82; |
| | 882 | } |
| | 883 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="30"]:righthandtraffic::maxspeedcasinglayer, |
| | 884 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="30"]!:righthandtraffic::maxspeedcasinglayer |
| | 885 | { |
| | 886 | right-casing-dashes-background-color: speed_30#4d4dff; |
| | 887 | } |
| | 888 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="40"]:righthandtraffic::maxspeedcasinglayer, |
| | 889 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="40"]!:righthandtraffic::maxspeedcasinglayer |
| | 890 | { |
| | 891 | right-casing-dashes-background-color: speed_40#4d4d00; |
| | 892 | } |
| | 893 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="45"]:righthandtraffic::maxspeedcasinglayer, |
| | 894 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="45"]!:righthandtraffic::maxspeedcasinglayer |
| | 895 | { |
| | 896 | right-casing-dashes-background-color: speed_45#fd6eaa; |
| | 897 | } |
| | 898 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="50"]:righthandtraffic::maxspeedcasinglayer, |
| | 899 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="50"]!:righthandtraffic::maxspeedcasinglayer |
| | 900 | { |
| | 901 | right-casing-dashes-background-color: speed_50#07f807; |
| | 902 | } |
| | 903 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="60"]:righthandtraffic::maxspeedcasinglayer, |
| | 904 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="60"]!:righthandtraffic::maxspeedcasinglayer |
| | 905 | { |
| | 906 | right-casing-dashes-background-color: speed_60#9f9fff; |
| | 907 | } |
| | 908 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="70"]:righthandtraffic::maxspeedcasinglayer, |
| | 909 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="70"]!:righthandtraffic::maxspeedcasinglayer |
| | 910 | { |
| | 911 | right-casing-dashes-background-color: speed_70#ee8b00; |
| | 912 | } |
| | 913 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="80"]:righthandtraffic::maxspeedcasinglayer, |
| | 914 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="80"]!:righthandtraffic::maxspeedcasinglayer |
| | 915 | { |
| | 916 | right-casing-dashes-background-color: speed_80#f90808; |
| | 917 | } |
| | 918 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="90"]:righthandtraffic::maxspeedcasinglayer, |
| | 919 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="90"]!:righthandtraffic::maxspeedcasinglayer |
| | 920 | { |
| | 921 | right-casing-dashes-background-color: speed_90#07f8f8; |
| | 922 | } |
| | 923 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="100"]:righthandtraffic::maxspeedcasinglayer, |
| | 924 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="100"]!:righthandtraffic::maxspeedcasinglayer |
| | 925 | { |
| | 926 | right-casing-dashes-background-color: speed_100#f807f8; |
| | 927 | } |
| | 928 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="110"]:righthandtraffic::maxspeedcasinglayer, |
| | 929 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="110"]!:righthandtraffic::maxspeedcasinglayer |
| | 930 | { |
| | 931 | right-casing-dashes-background-color: speed_110#7807f8; |
| | 932 | } |
| | 933 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="120"]:righthandtraffic::maxspeedcasinglayer, |
| | 934 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="120"]!:righthandtraffic::maxspeedcasinglayer |
| | 935 | { |
| | 936 | right-casing-dashes-background-color: speed_120#b69b20; |
| | 937 | } |
| | 938 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="130"]:righthandtraffic::maxspeedcasinglayer, |
| | 939 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="130"]!:righthandtraffic::maxspeedcasinglayer |
| | 940 | { |
| | 941 | right-casing-dashes-background-color: speed_130#c0f100; |
| | 942 | } |
| | 943 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="140"]:righthandtraffic::maxspeedcasinglayer, |
| | 944 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="140"]!:righthandtraffic::maxspeedcasinglayer |
| | 945 | { |
| | 946 | right-casing-dashes-background-color: speed_140#438100; |
| | 947 | } |
| | 948 | /* 4.3.2 - mph */ |
| | 949 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="5"]:righthandtraffic::maxspeedcasinglayer, |
| | 950 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="5"]!:righthandtraffic::maxspeedcasinglayer |
| | 951 | { |
| | 952 | right-casing-dashes-background-color: speed_5_mph#b80022; |
| | 953 | } |
| | 954 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="10"]:righthandtraffic::maxspeedcasinglayer, |
| | 955 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="10"]!:righthandtraffic::maxspeedcasinglayer |
| | 956 | { |
| | 957 | right-casing-dashes-background-color: speed_10_mph#00da8b; |
| | 958 | } |
| | 959 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="15"]:righthandtraffic::maxspeedcasinglayer, |
| | 960 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="15"]!:righthandtraffic::maxspeedcasinglayer |
| | 961 | { |
| | 962 | right-casing-dashes-background-color: speed_15_mph#e3cc82; |
| | 963 | } |
| | 964 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="20"]:righthandtraffic::maxspeedcasinglayer, |
| | 965 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="20"]!:righthandtraffic::maxspeedcasinglayer |
| | 966 | { |
| | 967 | right-casing-dashes-background-color: speed_20_mph#4d4dff; |
| | 968 | } |
| | 969 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="25"]:righthandtraffic::maxspeedcasinglayer, |
| | 970 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="25"]!:righthandtraffic::maxspeedcasinglayer |
| | 971 | { |
| | 972 | right-casing-dashes-background-color: speed_25_mph#4d4d00; |
| | 973 | } |
| | 974 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="30"]:righthandtraffic::maxspeedcasinglayer, |
| | 975 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="30"]!:righthandtraffic::maxspeedcasinglayer |
| | 976 | { |
| | 977 | right-casing-dashes-background-color: speed_30_mph#fd6eaa; |
| | 978 | } |
| | 979 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="35"]:righthandtraffic::maxspeedcasinglayer, |
| | 980 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="35"]!:righthandtraffic::maxspeedcasinglayer |
| | 981 | { |
| | 982 | right-casing-dashes-background-color: speed_35_mph#07f807; |
| | 983 | } |
| | 984 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="40"]:righthandtraffic::maxspeedcasinglayer, |
| | 985 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="40"]!:righthandtraffic::maxspeedcasinglayer |
| | 986 | { |
| | 987 | right-casing-dashes-background-color: speed_40_mph#9f9fff; |
| | 988 | } |
| | 989 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="45"]:righthandtraffic::maxspeedcasinglayer, |
| | 990 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="45"]!:righthandtraffic::maxspeedcasinglayer |
| | 991 | { |
| | 992 | right-casing-dashes-background-color: speed_45_mph#ee8b00; |
| | 993 | } |
| | 994 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="50"]:righthandtraffic::maxspeedcasinglayer, |
| | 995 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="50"]!:righthandtraffic::maxspeedcasinglayer |
| | 996 | { |
| | 997 | right-casing-dashes-background-color: speed_50_mph#f90808; |
| | 998 | } |
| | 999 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="55"]:righthandtraffic::maxspeedcasinglayer, |
| | 1000 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="55"]!:righthandtraffic::maxspeedcasinglayer |
| | 1001 | { |
| | 1002 | right-casing-dashes-background-color: speed_55_mph#07f8f8; |
| | 1003 | } |
| | 1004 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="60"]:righthandtraffic::maxspeedcasinglayer, |
| | 1005 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="60"]!:righthandtraffic::maxspeedcasinglayer |
| | 1006 | { |
| | 1007 | right-casing-dashes-background-color: speed_60_mph#f807f8; |
| | 1008 | } |
| | 1009 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="65"]:righthandtraffic::maxspeedcasinglayer, |
| | 1010 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="65"]!:righthandtraffic::maxspeedcasinglayer |
| | 1011 | { |
| | 1012 | right-casing-dashes-background-color: speed_65_mph#7807f8; |
| | 1013 | } |
| | 1014 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="70"]:righthandtraffic::maxspeedcasinglayer, |
| | 1015 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="70"]!:righthandtraffic::maxspeedcasinglayer |
| | 1016 | { |
| | 1017 | right-casing-dashes-background-color: speed_70_mph#b69b20; |
| | 1018 | } |
| | 1019 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="75"]:righthandtraffic::maxspeedcasinglayer, |
| | 1020 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="75"]!:righthandtraffic::maxspeedcasinglayer |
| | 1021 | { |
| | 1022 | right-casing-dashes-background-color: speed_75_mph#c0f100; |
| | 1023 | } |
| | 1024 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="80"]:righthandtraffic::maxspeedcasinglayer, |
| | 1025 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="80"]!:righthandtraffic::maxspeedcasinglayer |
| | 1026 | { |
| | 1027 | right-casing-dashes-background-color: speed_80_mph#438100; |
| | 1028 | } |
| | 1029 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="85"]:righthandtraffic::maxspeedcasinglayer, |
| | 1030 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="85"]!:righthandtraffic::maxspeedcasinglayer |
| | 1031 | { |
| | 1032 | right-casing-dashes-background-color: speed_85_mph#725600; |
| | 1033 | } |
| | 1034 | |
| | 1035 | /* 4.4 - general rules */ |
| | 1036 | way.maxspeed_right::maxspeedcasinglayer, |
| | 1037 | way.maxspeed_right_cond::maxspeedcasinglayer |
| | 1038 | { |
| | 1039 | right-casing-width: 6; |
| | 1040 | right-casing-offset: 0; |
| | 1041 | major-z-index: 3; |
| | 1042 | z-index: -1; |
| | 1043 | } |
| | 1044 | way|z16.maxspeed_right::maxspeedcasinglayer, |
| | 1045 | way|z16.maxspeed_right_cond::maxspeedcasinglayer |
| | 1046 | { |
| | 1047 | right-casing-width: 5; |
| | 1048 | } |
| | 1049 | way|z-15.maxspeed_right::maxspeedcasinglayer, |
| | 1050 | way|z-15.maxspeed_right_cond::maxspeedcasinglayer |
| | 1051 | { |
| | 1052 | right-casing-width: 4; |
| | 1053 | } |
| | 1054 | way.maxspeed_right_cond!.maxspeed_right::maxspeedcasinglayer |
| | 1055 | { |
| | 1056 | right-casing-opacity: 0; |
| | 1057 | right-casing-dashes-background-opacity: 1; |
| | 1058 | } |
| | 1059 | way.maxspeed_right[maxspeed:variable:forward]:righthandtraffic::maxspeedcasinglayer, |
| | 1060 | way.maxspeed_right[maxspeed:variable:backward]!:righthandtraffic::maxspeedcasinglayer, |
| | 1061 | way.maxspeed_right_cond[maxspeed:variable:forward]:righthandtraffic::maxspeedcasinglayer, |
| | 1062 | way.maxspeed_right_cond[maxspeed:variable:backward]!:righthandtraffic::maxspeedcasinglayer |
| | 1063 | { |
| | 1064 | right-casing-dashes: 34,6; |
| | 1068 | |
| | 1069 | /* 5 - display maxspeed:forward=* for lefthandtraffic and maxspeed:backward=* for righthandtraffic */ |
| | 1070 | /* 5.1 - kmh */ |
| | 1071 | way["maxspeed:forward"="none"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1072 | way["maxspeed:backward"="none"]:righthandtraffic::maxspeedcasinglayer |
| | 1073 | { |
| | 1074 | set maxspeed_left; |
| | 1075 | left-casing-color: speed_none#febede; |
| | 1076 | } |
| | 1077 | way["maxspeed:forward"="5"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1078 | way["maxspeed:backward"="5"]:righthandtraffic::maxspeedcasinglayer |
| | 1079 | { |
| | 1080 | set maxspeed_left; |
| | 1081 | left-casing-color: speed_5#ff5656; |
| | 1082 | } |
| | 1083 | way["maxspeed:forward"="10"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1084 | way["maxspeed:backward"="10"]:righthandtraffic::maxspeedcasinglayer, |
| | 1085 | way["maxspeed:backward"="RS:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1086 | { |
| | 1087 | set maxspeed_left; |
| | 1088 | left-casing-color: speed_10#b80022; |
| | 1089 | } |
| | 1090 | way["maxspeed:forward"="15"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1091 | way["maxspeed:backward"="15"]:righthandtraffic::maxspeedcasinglayer |
| | 1092 | { |
| | 1093 | set maxspeed_left; |
| | 1094 | left-casing-color: speed_15#00da8b; |
| | 1095 | } |
| | 1096 | way["maxspeed:forward"="20"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1097 | way["maxspeed:backward"="20"]:righthandtraffic::maxspeedcasinglayer, |
| | 1098 | way["maxspeed:backward"="BY:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1099 | way["maxspeed:backward"="RU:living_street"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1100 | { |
| | 1101 | set maxspeed_left; |
| | 1102 | left-casing-color: speed_20#e3cc82; |
| | 1103 | } |
| | 1104 | way["maxspeed:forward"="30"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1105 | way["maxspeed:backward"="30"]:righthandtraffic::maxspeedcasinglayer, |
| | 1106 | way["maxspeed:backward"="FR:zone30"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1107 | { |
| | 1108 | set maxspeed_left; |
| | 1109 | left-casing-color: speed_30#4d4dff; |
| | 1110 | } |
| | 1111 | way["maxspeed:forward"="40"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1112 | way["maxspeed:backward"="40"]:righthandtraffic::maxspeedcasinglayer |
| | 1113 | { |
| | 1114 | set maxspeed_left; |
| | 1115 | left-casing-color: speed_40#4d4d00; |
| | 1116 | } |
| | 1117 | way["maxspeed:forward"="45"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1118 | way["maxspeed:backward"="45"]:righthandtraffic::maxspeedcasinglayer |
| | 1119 | { |
| | 1120 | set maxspeed_left; |
| | 1121 | left-casing-color: speed_45#fd6eaa; |
| | 1122 | } |
| | 1123 | way["maxspeed:forward"="50"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1124 | way["maxspeed:backward"="50"]:righthandtraffic::maxspeedcasinglayer, |
| | 1125 | way["maxspeed:backward"="FR:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1126 | way["maxspeed:backward"="RO:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1127 | way["maxspeed:backward"="RS:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1128 | { |
| | 1129 | set maxspeed_left; |
| | 1130 | left-casing-color: speed_50#07f807; |
| | 1131 | } |
| | 1132 | way["maxspeed:forward"="60"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1133 | way["maxspeed:backward"="60"]:righthandtraffic::maxspeedcasinglayer, |
| | 1134 | way["maxspeed:backward"="BY:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1135 | way["maxspeed:backward"="RU:urban"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1136 | { |
| | 1137 | set maxspeed_left; |
| | 1138 | left-casing-color: speed_60#9f9fff; |
| | 1139 | } |
| | 1140 | way["maxspeed:forward"="70"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1141 | way["maxspeed:backward"="70"]:righthandtraffic::maxspeedcasinglayer |
| | 1142 | { |
| | 1143 | set maxspeed_left; |
| | 1144 | left-casing-color: speed_70#ee8b00; |
| | 1145 | } |
| | 1146 | way["maxspeed:forward"="80"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1147 | way["maxspeed:backward"="80"]:righthandtraffic::maxspeedcasinglayer, |
| | 1148 | way["maxspeed:backward"="FR:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1149 | way["maxspeed:backward"="RS:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1150 | { |
| | 1151 | set maxspeed_left; |
| | 1152 | left-casing-color: speed_80#f90808; |
| | 1153 | } |
| | 1154 | way["maxspeed:forward"="90"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1155 | way["maxspeed:backward"="90"]:righthandtraffic::maxspeedcasinglayer, |
| | 1156 | way["maxspeed:backward"="BY:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1157 | way["maxspeed:backward"="RO:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1158 | way["maxspeed:backward"="RU:rural"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1159 | { |
| | 1160 | set maxspeed_left; |
| | 1161 | left-casing-color: speed_90#07f8f8; |
| | 1162 | } |
| | 1163 | way["maxspeed:forward"="100"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1164 | way["maxspeed:backward"="100"]:righthandtraffic::maxspeedcasinglayer, |
| | 1165 | way["maxspeed:backward"="RO:trunk"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1166 | way["maxspeed:backward"="RS:trunk"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1167 | { |
| | 1168 | set maxspeed_left; |
| | 1169 | left-casing-color: speed_100#f807f8; |
| | 1170 | } |
| | 1171 | way["maxspeed:forward"="110"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1172 | way["maxspeed:backward"="110"]:righthandtraffic::maxspeedcasinglayer, |
| | 1173 | way["maxspeed:backward"="BY:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1174 | way["maxspeed:backward"="RU:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1175 | { |
| | 1176 | set maxspeed_left; |
| | 1177 | left-casing-color: speed_110#7807f8; |
| | 1178 | } |
| | 1179 | way["maxspeed:forward"="120"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1180 | way["maxspeed:backward"="120"]:righthandtraffic::maxspeedcasinglayer |
| | 1181 | { |
| | 1182 | set maxspeed_left; |
| | 1183 | left-casing-color: speed_120#b69b20; |
| | 1184 | } |
| | 1185 | way["maxspeed:forward"="130"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1186 | way["maxspeed:backward"="130"]:righthandtraffic::maxspeedcasinglayer, |
| | 1187 | way["maxspeed:backward"="FR:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1188 | way["maxspeed:backward"="RO:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer, |
| | 1189 | way["maxspeed:backward"="RS:motorway"][setting("implicit")]:righthandtraffic::maxspeedcasinglayer |
| | 1190 | { |
| | 1191 | set maxspeed_left; |
| | 1192 | left-casing-color: speed_130#c0f100; |
| | 1193 | } |
| | 1194 | way["maxspeed:forward"="140"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1195 | way["maxspeed:backward"="140"]:righthandtraffic::maxspeedcasinglayer |
| | 1196 | { |
| | 1197 | set maxspeed_left; |
| | 1198 | left-casing-color: speed_140#438100; |
| | 1199 | } |
| | 1200 | /* 5.2 - mph */ |
| | 1201 | way["maxspeed:forward"="5 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1202 | way["maxspeed:backward"="5 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1203 | { |
| | 1204 | set maxspeed_left; |
| | 1205 | left-casing-color: speed_5_mph#b80022; |
| | 1206 | } |
| | 1207 | way["maxspeed:forward"="10 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1208 | way["maxspeed:backward"="10 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1209 | { |
| | 1210 | set maxspeed_left; |
| | 1211 | left-casing-color: speed_10_mph#00da8b; |
| | 1212 | } |
| | 1213 | way["maxspeed:forward"="15 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1214 | way["maxspeed:backward"="15 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1215 | { |
| | 1216 | set maxspeed_left; |
| | 1217 | left-casing-color: speed_15_mph#e3cc82; |
| | 1218 | } |
| | 1219 | way["maxspeed:forward"="20 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1220 | way["maxspeed:backward"="20 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1221 | { |
| | 1222 | set maxspeed_left; |
| | 1223 | left-casing-color: speed_20_mph#4d4dff; |
| | 1224 | } |
| | 1225 | way["maxspeed:forward"="25 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1226 | way["maxspeed:backward"="25 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1227 | { |
| | 1228 | set maxspeed_left; |
| | 1229 | left-casing-color: speed_25_mph#4d4d00; |
| | 1230 | } |
| | 1231 | way["maxspeed:forward"="30 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1232 | way["maxspeed:backward"="30 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1233 | { |
| | 1234 | set maxspeed_left; |
| | 1235 | left-casing-color: speed_30_mph#fd6eaa; |
| | 1236 | } |
| | 1237 | way["maxspeed:forward"="35 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1238 | way["maxspeed:backward"="35 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1239 | { |
| | 1240 | set maxspeed_left; |
| | 1241 | left-casing-color: speed_35_mph#07f807; |
| | 1242 | } |
| | 1243 | way["maxspeed:forward"="40 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1244 | way["maxspeed:backward"="40 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1245 | { |
| | 1246 | set maxspeed_left; |
| | 1247 | left-casing-color: speed_40_mph#9f9fff; |
| | 1248 | } |
| | 1249 | way["maxspeed:forward"="45 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1250 | way["maxspeed:backward"="45 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1251 | { |
| | 1252 | set maxspeed_left; |
| | 1253 | left-casing-color: speed_45_mph#ee8b00; |
| | 1254 | } |
| | 1255 | way["maxspeed:forward"="50 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1256 | way["maxspeed:backward"="50 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1257 | { |
| | 1258 | set maxspeed_left; |
| | 1259 | left-casing-color: speed_50_mph#f90808; |
| | 1260 | } |
| | 1261 | way["maxspeed:forward"="55 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1262 | way["maxspeed:backward"="55 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1263 | { |
| | 1264 | set maxspeed_left; |
| | 1265 | left-casing-color: speed_55_mph#07f8f8; |
| | 1266 | } |
| | 1267 | way["maxspeed:forward"="60 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1268 | way["maxspeed:backward"="60 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1269 | { |
| | 1270 | set maxspeed_left; |
| | 1271 | left-casing-color: speed_60_mph#f807f8; |
| | 1272 | } |
| | 1273 | way["maxspeed:forward"="65 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1274 | way["maxspeed:backward"="65 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1275 | { |
| | 1276 | set maxspeed_left; |
| | 1277 | left-casing-color: speed_65_mph#7807f8; |
| | 1278 | } |
| | 1279 | way["maxspeed:forward"="70 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1280 | way["maxspeed:backward"="70 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1281 | { |
| | 1282 | set maxspeed_left; |
| | 1283 | left-casing-color: speed_70_mph#b69b20; |
| | 1284 | } |
| | 1285 | way["maxspeed:forward"="75 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1286 | way["maxspeed:backward"="75 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1287 | { |
| | 1288 | set maxspeed_left; |
| | 1289 | left-casing-color: speed_75_mph#c0f100; |
| | 1290 | } |
| | 1291 | way["maxspeed:forward"="80 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1292 | way["maxspeed:backward"="80 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1293 | { |
| | 1294 | set maxspeed_left; |
| | 1295 | left-casing-color: speed_80_mph#438100; |
| | 1296 | } |
| | 1297 | way["maxspeed:forward"="85 mph"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1298 | way["maxspeed:backward"="85 mph"]:righthandtraffic::maxspeedcasinglayer |
| | 1299 | { |
| | 1300 | set maxspeed_left; |
| | 1301 | left-casing-color: speed_85_mph#725600; |
| | 1302 | } |
| | 1303 | |
| | 1304 | /* 5.3 - conditional lefthand-forward and righthand-backward maxspeed */ |
| | 1305 | way.cond_forward_kmh!:righthandtraffic::maxspeedcasinglayer, |
| | 1306 | way.cond_backward_kmh:righthandtraffic::maxspeedcasinglayer, |
| | 1307 | way.cond_forward_mph!:righthandtraffic::maxspeedcasinglayer, |
| | 1308 | way.cond_backward_mph:righthandtraffic::maxspeedcasinglayer |
| | 1309 | { |
| | 1310 | set maxspeed_left_cond; |
| | 1311 | left-casing-dashes: 55,25; |
| | 1312 | } |
| | 1313 | /* 5.3.1 - kmh */ |
| | 1314 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="none"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1315 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="none"]:righthandtraffic::maxspeedcasinglayer |
| | 1316 | { |
| | 1317 | left-casing-dashes-background-color: speed_none#febede; |
| | 1318 | } |
| | 1319 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="5"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1320 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="5"]:righthandtraffic::maxspeedcasinglayer |
| | 1321 | { |
| | 1322 | left-casing-dashes-background-color: speed_5#ff5656; |
| | 1323 | } |
| | 1324 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="10"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1325 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="10"]:righthandtraffic::maxspeedcasinglayer |
| | 1326 | { |
| | 1327 | left-casing-dashes-background-color: speed_10#b80022; |
| | 1328 | } |
| | 1329 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="15"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1330 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="15"]:righthandtraffic::maxspeedcasinglayer |
| | 1331 | { |
| | 1332 | left-casing-dashes-background-color: speed_15#00da8b; |
| | 1333 | } |
| | 1334 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="20"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1335 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="20"]:righthandtraffic::maxspeedcasinglayer |
| | 1336 | { |
| | 1337 | left-casing-dashes-background-color: speed_20#e3cc82; |
| | 1338 | } |
| | 1339 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="30"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1340 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="30"]:righthandtraffic::maxspeedcasinglayer |
| | 1341 | { |
| | 1342 | left-casing-dashes-background-color: speed_30#4d4dff; |
| | 1343 | } |
| | 1344 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="40"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1345 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="40"]:righthandtraffic::maxspeedcasinglayer |
| | 1346 | { |
| | 1347 | left-casing-dashes-background-color: speed_40#4d4d00; |
| | 1348 | } |
| | 1349 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="45"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1350 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="45"]:righthandtraffic::maxspeedcasinglayer |
| | 1351 | { |
| | 1352 | left-casing-dashes-background-color: speed_45#fd6eaa; |
| | 1353 | } |
| | 1354 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="50"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1355 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="50"]:righthandtraffic::maxspeedcasinglayer |
| | 1356 | { |
| | 1357 | left-casing-dashes-background-color: speed_50#07f807; |
| | 1358 | } |
| | 1359 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="60"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1360 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="60"]:righthandtraffic::maxspeedcasinglayer |
| | 1361 | { |
| | 1362 | left-casing-dashes-background-color: speed_60#9f9fff; |
| | 1363 | } |
| | 1364 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="70"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1365 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="70"]:righthandtraffic::maxspeedcasinglayer |
| | 1366 | { |
| | 1367 | left-casing-dashes-background-color: speed_70#ee8b00; |
| | 1368 | } |
| | 1369 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="80"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1370 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="80"]:righthandtraffic::maxspeedcasinglayer |
| | 1371 | { |
| | 1372 | left-casing-dashes-background-color: speed_80#f90808; |
| | 1373 | } |
| | 1374 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="90"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1375 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="90"]:righthandtraffic::maxspeedcasinglayer |
| | 1376 | { |
| | 1377 | left-casing-dashes-background-color: speed_90#07f8f8; |
| | 1378 | } |
| | 1379 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="100"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1380 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="100"]:righthandtraffic::maxspeedcasinglayer |
| | 1381 | { |
| | 1382 | left-casing-dashes-background-color: speed_100#f807f8; |
| | 1383 | } |
| | 1384 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="110"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1385 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="110"]:righthandtraffic::maxspeedcasinglayer |
| | 1386 | { |
| | 1387 | left-casing-dashes-background-color: speed_110#7807f8; |
| | 1388 | } |
| | 1389 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="120"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1390 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="120"]:righthandtraffic::maxspeedcasinglayer |
| | 1391 | { |
| | 1392 | left-casing-dashes-background-color: speed_120#b69b20; |
| | 1393 | } |
| | 1394 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="130"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1395 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="130"]:righthandtraffic::maxspeedcasinglayer |
| | 1396 | { |
| | 1397 | left-casing-dashes-background-color: speed_130#c0f100; |
| | 1398 | } |
| | 1399 | way.cond_forward_kmh[prop(maxsp_forward_cond, maxspeedcasinglayer)="140"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1400 | way.cond_backward_kmh[prop(maxsp_backward_cond, maxspeedcasinglayer)="140"]:righthandtraffic::maxspeedcasinglayer |
| | 1401 | { |
| | 1402 | left-casing-dashes-background-color: speed_140#438100; |
| | 1403 | } |
| | 1404 | /* 5.3.2 - mph */ |
| | 1405 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="5"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1406 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="5"]:righthandtraffic::maxspeedcasinglayer |
| | 1407 | { |
| | 1408 | left-casing-dashes-background-color: speed_5_mph#b80022; |
| | 1409 | } |
| | 1410 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="10"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1411 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="10"]:righthandtraffic::maxspeedcasinglayer |
| | 1412 | { |
| | 1413 | left-casing-dashes-background-color: speed_10_mph#00da8b; |
| | 1414 | } |
| | 1415 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="15"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1416 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="15"]:righthandtraffic::maxspeedcasinglayer |
| | 1417 | { |
| | 1418 | left-casing-dashes-background-color: speed_15_mph#e3cc82; |
| | 1419 | } |
| | 1420 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="20"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1421 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="20"]:righthandtraffic::maxspeedcasinglayer |
| | 1422 | { |
| | 1423 | left-casing-dashes-background-color: speed_20_mph#4d4dff; |
| | 1424 | } |
| | 1425 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="25"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1426 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="25"]:righthandtraffic::maxspeedcasinglayer |
| | 1427 | { |
| | 1428 | left-casing-dashes-background-color: speed_25_mph#4d4d00; |
| | 1429 | } |
| | 1430 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="30"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1431 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="30"]:righthandtraffic::maxspeedcasinglayer |
| | 1432 | { |
| | 1433 | left-casing-dashes-background-color: speed_30_mph#fd6eaa; |
| | 1434 | } |
| | 1435 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="35"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1436 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="35"]:righthandtraffic::maxspeedcasinglayer |
| | 1437 | { |
| | 1438 | left-casing-dashes-background-color: speed_35_mph#07f807; |
| | 1439 | } |
| | 1440 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="40"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1441 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="40"]:righthandtraffic::maxspeedcasinglayer |
| | 1442 | { |
| | 1443 | left-casing-dashes-background-color: speed_40_mph#9f9fff; |
| | 1444 | } |
| | 1445 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="45"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1446 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="45"]:righthandtraffic::maxspeedcasinglayer |
| | 1447 | { |
| | 1448 | left-casing-dashes-background-color: speed_45_mph#ee8b00; |
| | 1449 | } |
| | 1450 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="50"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1451 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="50"]:righthandtraffic::maxspeedcasinglayer |
| | 1452 | { |
| | 1453 | left-casing-dashes-background-color: speed_50_mph#f90808; |
| | 1454 | } |
| | 1455 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="55"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1456 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="55"]:righthandtraffic::maxspeedcasinglayer |
| | 1457 | { |
| | 1458 | left-casing-dashes-background-color: speed_55_mph#07f8f8; |
| | 1459 | } |
| | 1460 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="60"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1461 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="60"]:righthandtraffic::maxspeedcasinglayer |
| | 1462 | { |
| | 1463 | left-casing-dashes-background-color: speed_60_mph#f807f8; |
| | 1464 | } |
| | 1465 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="65"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1466 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="65"]:righthandtraffic::maxspeedcasinglayer |
| | 1467 | { |
| | 1468 | left-casing-dashes-background-color: speed_65_mph#7807f8; |
| | 1469 | } |
| | 1470 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="70"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1471 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="70"]:righthandtraffic::maxspeedcasinglayer |
| | 1472 | { |
| | 1473 | left-casing-dashes-background-color: speed_70_mph#b69b20; |
| | 1474 | } |
| | 1475 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="75"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1476 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="75"]:righthandtraffic::maxspeedcasinglayer |
| | 1477 | { |
| | 1478 | left-casing-dashes-background-color: speed_75_mph#c0f100; |
| | 1479 | } |
| | 1480 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="80"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1481 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="80"]:righthandtraffic::maxspeedcasinglayer |
| | 1482 | { |
| | 1483 | left-casing-dashes-background-color: speed_80_mph#438100; |
| | 1484 | } |
| | 1485 | way.cond_forward_mph[prop(maxsp_forward_cond, maxspeedcasinglayer)="85"]!:righthandtraffic::maxspeedcasinglayer, |
| | 1486 | way.cond_backward_mph[prop(maxsp_backward_cond, maxspeedcasinglayer)="85"]:righthandtraffic::maxspeedcasinglayer |
| | 1487 | { |
| | 1488 | left-casing-dashes-background-color: speed_85_mph#725600; |
| | 1489 | } |
| | 1490 | |
| | 1491 | /* 5.4 - general rules */ |
| | 1492 | way.maxspeed_left::maxspeedcasinglayer, |
| | 1493 | way.maxspeed_left_cond::maxspeedcasinglayer |
| | 1494 | { |
| | 1495 | left-casing-width: 6; |
| | 1496 | left-casing-offset: 0; |
| | 1497 | major-z-index: 3; |
| | 1498 | z-index: -1; |
| | 1499 | } |
| | 1500 | way|z16.maxspeed_left::maxspeedcasinglayer, |
| | 1501 | way|z16.maxspeed_left_cond::maxspeedcasinglayer |
| | 1502 | { |
| | 1503 | left-casing-width: 5; |
| | 1504 | } |
| | 1505 | way|z-15.maxspeed_left::maxspeedcasinglayer, |
| | 1506 | way|z-15.maxspeed_left_cond::maxspeedcasinglayer |
| | 1507 | { |
| | 1508 | left-casing-width: 4; |
| | 1509 | } |
| | 1510 | way.maxspeed_left_cond!.maxspeed_left::maxspeedcasinglayer |
| | 1511 | { |
| | 1512 | left-casing-opacity: 0; |
| | 1513 | left-casing-dashes-background-opacity: 1; |
| | 1514 | } |
| | 1515 | way.maxspeed_left[maxspeed:variable:forward]!:righthandtraffic::maxspeedcasinglayer, |
| | 1516 | way.maxspeed_left[maxspeed:variable:backward]:righthandtraffic::maxspeedcasinglayer, |
| | 1517 | way.maxspeed_left_cond[maxspeed:variable:forward]!:righthandtraffic::maxspeedcasinglayer, |
| | 1518 | way.maxspeed_left_cond[maxspeed:variable:backward]:righthandtraffic::maxspeedcasinglayer |
| | 1519 | { |
| | 1520 | left-casing-dashes: 34,6; |
| | 1521 | } |
| | 1522 | |
| 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 |
| 730 | | { |
| 731 | | set correct_value; |
| 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 |
| 743 | | { |
| 744 | | set correct_value_forward; |
| 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 |
| 756 | | { |
| 757 | | set correct_value_backward; |
| 758 | | } |
| 759 | | |
| 760 | | way["maxspeed"]!.correct_value::maxspeed, |
| 761 | | way["maxspeed:forward"]!.correct_value_forward::maxspeed, |
| 762 | | way["maxspeed:backward"]!.correct_value_backward::maxspeed |
| 763 | | { |
| 764 | | color: yellow; |
| 765 | | dashes-background-color: red; |
| 766 | | dashes: 4,24; |
| 767 | | opacity: 1; |
| 768 | | width: 5; |
| 769 | | text: tr("no correct value for maxspeed!"); |
| 770 | | text-color: black; |
| 771 | | font-size: 11; |
| 772 | | text-halo-color: red; |
| 773 | | text-halo-radius: 2; |
| 774 | | casing-width: 1; |
| 775 | | casing-color: yellow; |
| 776 | | } |
| 777 | | |
| 778 | | /* report if maxspeed direction is opposed to oneway direction */ |
| | 1604 | /* 7 - error reporting (text always in default layer, overwrites text: prop(maxspeedvalues))*/ |
| | 1605 | /* 7.1 - report wrong value of maxspeed (knots has no style support but should not produce a warning anyway) */ |
| | 1606 | way[maxspeed=~/^[1-9][0-9]*( mph| knots)?$/], |
| | 1607 | way[maxspeed=signals], |
| | 1608 | way[maxspeed=none], |
| | 1609 | way[maxspeed=~/^(BY|FR|RO|RS|RU):(urban|rural|motorway)/][setting("implicit")], |
| | 1610 | way[maxspeed=~/^(FR):(zone30)/][setting("implicit")], |
| | 1611 | way[maxspeed=~/^(RO|RS):(trunk)/][setting("implicit")], |
| | 1612 | way[maxspeed=~/^(BY|RS|RU):(living_street)/][setting("implicit")] |
| | 1613 | { |
| | 1614 | set correct_value; |
| | 1615 | } |
| | 1616 | way[maxspeed:forward=~/^[1-9][0-9]*( mph| knots)?$/], |
| | 1617 | way[maxspeed:forward=signals], |
| | 1618 | way[maxspeed:forward=none], |
| | 1619 | way[maxspeed:forward=~/^(BY|FR|RO|RS|RU):(urban|rural|motorway)/][setting("implicit")], |
| | 1620 | way[maxspeed:forward=~/^(FR):(zone30)/][setting("implicit")], |
| | 1621 | way[maxspeed:forward=~/^(RO|RS):(trunk)/][setting("implicit")], |
| | 1622 | way[maxspeed:forward=~/^(BY|RS|RU):(living_street)/][setting("implicit")] |
| | 1623 | { |
| | 1624 | set correct_value_forward; |
| | 1625 | } |
| | 1626 | way[maxspeed:backward=~/^[1-9][0-9]*( mph| knots)?$/], |
| | 1627 | way[maxspeed:backward=signals], |
| | 1628 | way[maxspeed:backward=none], |
| | 1629 | way[maxspeed:backward=~/^(BY|FR|RO|RS|RU):(urban|rural|motorway)/][setting("implicit")], |
| | 1630 | way[maxspeed:backward=~/^(FR):(zone30)/][setting("implicit")], |
| | 1631 | way[maxspeed:backward=~/^(RO|RS):(trunk)/][setting("implicit")], |
| | 1632 | way[maxspeed:backward=~/^(BY|RS|RU):(living_street)/][setting("implicit")] |
| | 1633 | { |
| | 1634 | set correct_value_backward; |
| | 1635 | } |
| | 1636 | |
| | 1637 | way["maxspeed"]!.correct_value, |
| | 1638 | way["maxspeed:forward"]!.correct_value_forward, |
| | 1639 | way["maxspeed:backward"]!.correct_value_backward |
| | 1640 | { |
| | 1641 | color: yellow; |
| | 1642 | dashes-background-color: red; |
| | 1643 | dashes: 4,24; |
| | 1644 | width: 5; |
| | 1645 | text: tr("wrong maxspeed value!"); |
| | 1646 | text-color: black; |
| | 1647 | font-size: 11; |
| | 1648 | text-halo-color: red; |
| | 1649 | text-halo-radius: 2; |
| | 1650 | left-casing-width: 1; |
| | 1651 | left-casing-color: yellow; |
| | 1652 | right-casing-width: 1; |
| | 1653 | right-casing-color: yellow; |
| | 1654 | major-z-index: 3; |
| | 1655 | } |
| | 1656 | |
| | 1657 | |
| | 1658 | /* 7.2 - report wrong value of maxspeed:conditional */ |
| | 1659 | way["maxspeed:conditional"=~/^(none|[1-9][0-9]*( mph| knots)?) @ /] |
| | 1660 | { |
| | 1661 | set correct_value_cond; |
| | 1662 | } |
| | 1663 | |
| | 1664 | way["maxspeed:forward:conditional"=~/^(none|[1-9][0-9]*( mph| knots)?) @ /] |
| | 1665 | { |
| | 1666 | set correct_value_forward_cond; |
| | 1667 | } |
| | 1668 | |
| | 1669 | |
| | 1670 | way["maxspeed:backward:conditional"=~/^(none|[1-9][0-9]*( mph| knots)?) @ /] |
| | 1671 | { |
| | 1672 | set correct_value_backward_cond; |
| | 1673 | } |
| | 1674 | |
| | 1675 | |
| | 1676 | way["maxspeed:conditional"]!.correct_value_cond, |
| | 1677 | way["maxspeed:forward:conditional"]!.correct_value_forward_cond, |
| | 1678 | way["maxspeed:backward:conditional"]!.correct_value_backward_cond |
| | 1679 | { |
| | 1680 | color: yellow; |
| | 1681 | dashes-background-color: red; |
| | 1682 | dashes: 4,24; |
| | 1683 | width: 5; |
| | 1684 | text: tr("wrong conditional maxspeed value!"); |
| | 1685 | text-color: black; |
| | 1686 | font-size: 11; |
| | 1687 | text-halo-color: red; |
| | 1688 | text-halo-radius: 2; |
| | 1689 | left-casing-width: 1; |
| | 1690 | left-casing-color: yellow; |
| | 1691 | right-casing-width: 1; |
| | 1692 | right-casing-color: yellow; |
| | 1693 | major-z-index: 3; |
| | 1694 | } |
| | 1695 | |
| | 1696 | /* 7.3 - report conditional maxspeed without default maxspeed */ |
| | 1697 | way["maxspeed:conditional"][!"maxspeed"], |
| | 1698 | way["maxspeed:forward:conditional"][!"maxspeed:forward"][!"maxspeed"], |
| | 1699 | way["maxspeed:backward:conditional"][!"maxspeed:backward"][!"maxspeed"] |
| | 1700 | { |
| | 1701 | color: yellow; |
| | 1702 | dashes-background-color: red; |
| | 1703 | dashes: 4,24; |
| | 1704 | width: 5; |
| | 1705 | text: tr("conditional maxspeed without default maxspeed!"); |
| | 1706 | text-color: black; |
| | 1707 | font-size: 11; |
| | 1708 | text-halo-color: red; |
| | 1709 | text-halo-radius: 2; |
| | 1710 | left-casing-width: 1; |
| | 1711 | left-casing-color: yellow; |
| | 1712 | right-casing-width: 1; |
| | 1713 | right-casing-color: yellow; |
| | 1714 | major-z-index: 3; |
| | 1715 | |
| | 1716 | } |
| | 1717 | |
| | 1718 | /* 7.4 - report wrong value of maxspeed:advisory */ |
| | 1719 | way[maxspeed:advisory=~/^[1-9][0-9]*( mph| knots)?$/] |
| | 1720 | { |
| | 1721 | set correct_value_advisory; |
| | 1722 | } |
| | 1723 | way[maxspeed:advisory:forward=~/^[1-9][0-9]*( mph| knots)?$/] |
| | 1724 | { |
| | 1725 | set correct_value_advisory_forward; |
| | 1726 | } |
| | 1727 | way[maxspeed:advisory:backward=~/^[1-9][0-9]*( mph| knots)?$/] |
| | 1728 | { |
| | 1729 | set correct_value_advisory_backward; |
| | 1730 | } |
| | 1731 | |
| | 1732 | way["maxspeed:advisory"]!.correct_value_advisory, |
| | 1733 | way["maxspeed:advisory:forward"]!.correct_value_advisory_forward, |
| | 1734 | way["maxspeed:advisory:backward"]!.correct_value_advisory_backward |
| | 1735 | { |
| | 1736 | color: yellow; |
| | 1737 | dashes-background-color: red; |
| | 1738 | dashes: 4,24; |
| | 1739 | width: 5; |
| | 1740 | text: tr("wrong maxspeed:advisory value!"); |
| | 1741 | text-color: black; |
| | 1742 | font-size: 11; |
| | 1743 | text-halo-color: red; |
| | 1744 | text-halo-radius: 2; |
| | 1745 | left-casing-width: 1; |
| | 1746 | left-casing-color: yellow; |
| | 1747 | right-casing-width: 1; |
| | 1748 | right-casing-color: yellow; |
| | 1749 | major-z-index: 3; |
| | 1750 | } |
| | 1751 | |
| | 1752 | /* 7.5 - report if maxspeed direction is opposed to oneway direction */ |