Skip to content

Commit

Permalink
crossing: Introduce @templates/crossing/traffic_signal_more
Browse files Browse the repository at this point in the history
This extract the three moreFields to be reused in all traffic_signals presets.
- "traffic_signals/arrow"
- "traffic_signals/countdown"
- "traffic_signals/minimap"

For unclear reasons the cycleway/crossing/traffic_signals did not have those more fields which are now added to streamline the presets.
  • Loading branch information
tordans committed Apr 24, 2024
1 parent 79d8d58 commit c89913e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
23 changes: 23 additions & 0 deletions data/presets/@templates/crossing/traffic_signal_more.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"fields": [
"traffic_signals/arrow",
"traffic_signals/countdown",
"traffic_signals/minimap"
],
"geometry": [
"point"
],
"tags": {
"@template": "crossing/traffic_signal_more"
},
"searchable": false,
"locationSet": {
"include": [
"999"
],
"exclude": [
"999"
]
},
"name": "{point}"
}
4 changes: 1 addition & 3 deletions data/presets/highway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
],
"moreFields": [
"kerb",
"traffic_signals/arrow",
"traffic_signals/countdown",
"traffic_signals/minimap"
"{@templates/crossing/crossing/traffic_signal_more}"
],
"geometry": [
"vertex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"{@templates/crossing/geometry_line}"
],
"moreFields": [
"{@templates/crossing/crossing/traffic_signal_more}"
],
"geometry": [
"line"
Expand Down
4 changes: 1 addition & 3 deletions data/presets/highway/footway/crossing/traffic_signals.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"{@templates/crossing/geometry_line}"
],
"moreFields": [
"traffic_signals/arrow",
"traffic_signals/countdown",
"traffic_signals/minimap"
"{@templates/crossing/crossing/traffic_signal_more}"
],
"geometry": [
"line"
Expand Down

0 comments on commit c89913e

Please sign in to comment.