| 33 | | description: "Handig voor voetgangerszaken. Visualiseert de sidewalk, sidewalk:left, en sidewalk:right tags, en tekent de verschillende highway=footway soorten met verschillende patronen. Wegen waar voetgangers niet mogen komen worden doorschijnend gemaakt."; |
| 34 | | } |
| | 39 | description: "Handig voor voetgangerszaken. Visualiseert de sidewalk, sidewalk:left, en sidewalk:right tags, en tekent de verschillende highway=footway soorten met verschillende patronen. Wegen waar voetganers niet mogen komen worden doorschijnend gemaakt."; |
| | 40 | } |
| | 41 | |
| | 42 | /* |
| | 43 | Settings. |
| | 44 | */ |
| | 45 | |
| | 46 | setting::highlight_routes { |
| | 47 | type: boolean; |
| | 48 | label: tr("Highlight ways part of trails and other hiking routes"); |
| | 49 | default: true; |
| | 50 | } |
| | 51 | |
| | 52 | setting::highlight_rwn_nodes { |
| | 53 | type: boolean; |
| | 54 | label: tr("Show the node names of recreational walking node networks"); |
| | 55 | default: true; |
| | 56 | } |
| | 57 | |
| | 58 | setting::no_foot_translucent { |
| | 59 | type: boolean; |
| | 60 | label: tr("Make ways without pedestrian access translucent"); |
| | 61 | default: true; |
| | 62 | } |
| | 63 | |
| | 64 | |
| | 65 | /* |
| | 66 | The sidewalk=*, sidewalk:left=*, and sidewalk:right=* tags. |
| | 67 | */ |
| | 232 | } |
| | 233 | |
| | 234 | /* |
| | 235 | Highlight walking routes. |
| | 236 | */ |
| | 237 | |
| | 238 | relation[type=route][route=foot] > way[setting("highlight_routes")]::walking_route_bg, |
| | 239 | relation[type=route][route=hiking] > way[setting("highlight_routes")]::walking_route_bg { |
| | 240 | width: 20; |
| | 241 | opacity: 0.3; |
| | 242 | color: #b4ffad; |
| | 243 | object-z-index: -1.0; |
| | 244 | } |
| | 245 | |
| | 246 | relation[type=route][route=foot]["network:type"=node_network] > way[setting("highlight_routes")]::walking_route_bg, |
| | 247 | relation[type=route][route=hiking]["network:type"=node_network] > way[setting("highlight_routes")]::walking_route_bg { |
| | 248 | width: 20; |
| | 249 | opacity: 0.3; |
| | 250 | color: #adb8ff; |
| | 251 | object-z-index: -1.0; |
| | 252 | } |
| | 253 | |
| | 254 | /* For rwn node networks show the node number. */ |
| | 255 | relation[type=network]["network:type"=node_network] > node[rwn_ref][setting("highlight_rwn_nodes")]::walking_route_fg { |
| | 256 | symbol-shape: circle; |
| | 257 | symbol-fill-color: #ffffff; |
| | 258 | symbol-size: 40; |
| | 259 | symbol-stroke-width: 2; |
| | 260 | symbol-stroke-color: #555555; |
| | 261 | text: "rwn_ref"; |
| | 262 | /* Scale the text based on the length of the node reference. These tend to be short (between 1 and 4 characters), but longer ones should render nicely too. */ |
| | 263 | font-size: eval(18 - max(min(length(tag("rwn_ref")), 6), 2) * 1.3); |
| | 264 | text-anchor-horizontal: center; |
| | 265 | text-anchor-vertical: center; |
| | 266 | text-color: #000000; |
| | 267 | /* The halo is for longer node references: they will overlap with the circle but remain legible. */ |
| | 268 | text-halo-color: #ffffff; |
| | 269 | text-halo-radius: 2; |
| | 270 | major-z-index: 5.0; |
| 209 | | way[access=no]!.foot-has-access, |
| 210 | | way[access=private]!.foot-has-access, |
| 211 | | way[foot=use_sidepath], |
| 212 | | way[foot=private], |
| 213 | | way[foot=no] { |
| | 285 | way[access=no][setting("no_foot_translucent")]!.foot-has-access, |
| | 286 | way[access=private][setting("no_foot_translucent")]!.foot-has-access, |
| | 287 | way[foot=use_sidepath][setting("no_foot_translucent")], |
| | 288 | way[foot=private][setting("no_foot_translucent")], |
| | 289 | way[foot=no][setting("no_foot_translucent")] { |
| 218 | | way[access=no]!.foot-has-access::core_access, |
| 219 | | way[access=private]!.foot-has-access::core_access, |
| 220 | | way[foot=use_sidepath]::core_access, |
| 221 | | way[foot=private]::core_access, |
| 222 | | way[foot=no]::core_access { |
| | 294 | way[access=no][setting("no_foot_translucent")]!.foot-has-access::core_access, |
| | 295 | way[access=private][setting("no_foot_translucent")]!.foot-has-access::core_access, |
| | 296 | way[foot=use_sidepath][setting("no_foot_translucent")]::core_access, |
| | 297 | way[foot=private][setting("no_foot_translucent")]::core_access, |
| | 298 | way[foot=no][setting("no_foot_translucent")]::core_access { |