Changes between Version 13 and Version 14 of Styles/SidewalksAndFootways
- Timestamp:
- 2023-02-16T19:25:37+01:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/SidewalksAndFootways
v13 v14 1 Useful for highlighting pedestrian affairs when mapping. Visualizes the `sidewalk`, `sidewalk:left`, and `sidewalk:right` tags of highways, and renders various `highway=footway` types specified via `footway=*` in different patterns. Ways that do not permit pedestrian use are (optionally) made translucent, making it easy to see that a tag like `foot=no` or `foot=use_sidepath` is applied. 1 Useful for highlighting pedestrian affairs when mapping. Visualizes the `sidewalk`, `sidewalk:left`, and `sidewalk:right` tags of highways, and renders various `highway=footway` types specified via `footway=*` in different patterns. 2 3 Ways that do not permit pedestrian use are (optionally) made translucent, making it easy to see that a tag like `foot=no` or `foot=use_sidepath` is applied. 2 4 3 5 [[Image(sample.png)]] 6 7 When `tactile_paving` is set to a value which indicates the presence of tactile paving, a white casing is drawn around the way. 4 8 5 9 == Settings … … 35 39 This style is a fork of https://josm.openstreetmap.de/wiki/Styles/Sidewalks 36 40 37 Because this style introduces more features than the above I have forked it for now. If the author of the original is willing the two may be combined in the future.41 Because this style introduces more features than the above I have forked it. If the author of the original is willing the two may be combined in the future. 38 42 */ 39 43 … … 58 62 59 63 setting::highlight_routes { 60 type: boolean; 61 label: tr("Highlight ways part of trails and other hiking routes"); 62 default: true; 64 type: boolean; 65 label: tr("Highlight ways part of trails and other hiking routes"); 66 default: true; 63 67 } 64 68 65 69 setting::highlight_rwn_nodes { 66 type: boolean; 67 label: tr("Show the node names of recreational walking node networks"); 68 default: true; 70 type: boolean; 71 label: tr("Show the node names of recreational walking node networks"); 72 default: true; 73 } 74 75 setting::highlight_tactile_paving { 76 type: boolean; 77 label: tr("Highlight ways with tactile paving"); 78 default: true; 69 79 } 70 80 71 81 setting::no_foot_translucent { 72 type: boolean; 73 label: tr("Make ways without pedestrian access translucent"); 74 default: true; 82 type: boolean; 83 label: tr("Make ways without pedestrian access translucent"); 84 default: true; 85 } 86 87 setting::trunk_implies_foot_no { 88 type: boolean; 89 label: tr("Treat trunk roads without motorroad=yes as inaccesible for pedestrians (used in combination with the translucency option)"); 90 default: true; 75 91 } 76 92 77 93 setting::show_kerb { 78 type: boolean; 79 label: tr("Show kerb transition values on nodes"); 80 default: true; 94 type: boolean; 95 label: tr("Show kerb transition values on nodes"); 96 default: true; 81 97 } 82 98 … … 208 224 symbol-size: 10; 209 225 symbol-stroke-width: 1; 210 symbol-stroke-color: # D3D3D3;226 symbol-stroke-color: #d3d3d3; 211 227 } 212 228 node|z-19[kerb][setting("show_kerb")] { … … 217 233 node|z-21[kerb=raised][setting("show_kerb")] { 218 234 symbol-fill-color: #933434; 219 symbol-stroke-color: # E8BFBF;235 symbol-stroke-color: #e8bfbf; 220 236 } 221 237 node|z-21[kerb=lowered][setting("show_kerb")] { 222 symbol-fill-color: #34938 A;223 symbol-stroke-color: # BFE8E5;238 symbol-fill-color: #34938a; 239 symbol-stroke-color: #bfe8e5; 224 240 } 225 241 node|z-21[kerb=rolled][setting("show_kerb")] { 226 symbol-fill-color: #935 C34;227 symbol-stroke-color: # E8D0BF;242 symbol-fill-color: #935c34; 243 symbol-stroke-color: #e8d0bf; 228 244 } 229 245 node|z-21[kerb=flush][setting("show_kerb")] { 230 246 symbol-fill-color: #349340; 231 symbol-stroke-color: # BFE8C4;247 symbol-stroke-color: #bfe8c4; 232 248 } 233 249 node|z-21[kerb=yes][setting("show_kerb")] { 234 250 symbol-fill-color: #848484; 235 symbol-stroke-color: # F0F0F0;251 symbol-stroke-color: #f0f0f0; 236 252 } 237 253 node|z-21[kerb=no][setting("show_kerb")] { 238 254 symbol-fill-color: #363636; 239 symbol-stroke-color: # ADADAD;255 symbol-stroke-color: #adadad; 240 256 } 241 257 … … 338 354 width: 2; 339 355 dashes: 5, 10; 356 } 357 358 /* 359 tactile paving. 360 */ 361 362 way[tactile_paving=yes]::tactile_paving_bg, 363 way[tactile_paving=contrasted]::tactile_paving_bg, 364 way[tactile_paving=primitive]::tactile_paving_bg, 365 way[tactile_paving=partial]::tactile_paving_bg { 366 set has-tactile-paving; 367 } 368 369 way[setting("highlight_tactile_paving")].has-tactile-paving::tactile_paving_bg { 370 width: 7; 371 color: white; 372 opacity: 0.8; 373 object-z-index: -0.8; 374 } 375 376 way[highway=pedestrian][setting("highlight_tactile_paving")].has-tactile-paving::tactile_paving_bg { 377 width: 9; 340 378 } 341 379 … … 380 418 381 419 /* 382 Make ways with no pedestrian access translucent. This makes it easier to focus on the ways that do permit pedestrians,420 Make ways with no pedestrian access translucent. this makes it easier to focus on the ways that do permit pedestrians, 383 421 and shows whether or not pedestrian access is allowed at a glance. 422 423 `highway=motorway`, `highway=motorway_link`, and `highway=busway` imply `foot=no`. for `highway=trunk` and `highway=trunk_link` 424 this may be locale dependent. For this reason this style inlcudes a setting which can configure behaviour for the latter. 384 425 */ 385 426 … … 391 432 } 392 433 434 way[motorroad=yes][setting("no_foot_translucent")]!.foot-has-access::core_motorroad { 435 /* Motorroad casing is in a separate layer. */ 436 opacity: 0.3; 437 } 438 439 393 440 way[access=no][setting("no_foot_translucent")]!.foot-has-access, 394 441 way[access=private][setting("no_foot_translucent")]!.foot-has-access, 442 way[highway=motorway][setting("no_foot_translucent")]!.foot-has-access, 443 way[highway=motorway_link][setting("no_foot_translucent")]!.foot-has-access, 444 way[highway=trunk][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access, 445 way[highway=trunk_link][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access, 446 way[highway=busway][setting("no_foot_translucent")]!.foot-has-access, 447 way[motorroad=yes][setting("no_foot_translucent")]!.foot-has-access, 395 448 way[foot=use_sidepath][setting("no_foot_translucent")], 396 449 way[foot=private][setting("no_foot_translucent")], … … 402 455 way[access=no][setting("no_foot_translucent")]!.foot-has-access::core_access, 403 456 way[access=private][setting("no_foot_translucent")]!.foot-has-access::core_access, 457 way[highway=motorway][setting("no_foot_translucent")]!.foot-has-access::care_access, 458 way[highway=motorway_link][setting("no_foot_translucent")]!.foot-has-access::care_access, 459 way[highway=trunk][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access::core_access, 460 way[highway=trunk_link][setting("no_foot_translucent")][setting("trunk_implies_foot_no")]!.foot-has-access::core_access, 461 way[highway=busway][setting("no_foot_translucent")]!.foot-has-access::core_access, 404 462 way[foot=use_sidepath][setting("no_foot_translucent")]::core_access, 405 463 way[foot=private][setting("no_foot_translucent")]::core_access,
