Skip to content

Commit 814d3e5

Browse files
authored
Ensure legend shows subway/light rail train protection in view (#867)
The type of rail was taken into account for filtering the legend. The legend only contains `railway = rail` features, so all of the subway and light rail rail features on the map were not shown in the legend because their keys did not match. Tested in http://localhost:8000/#view=15.58/40.736959/-74.164143&style=signals: <img width="1427" height="1110" alt="image" src="https://github.com/user-attachments/assets/e66a9ff2-8a09-46ba-afac-793d59fd7452" />
1 parent bd534c7 commit 814d3e5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

proxy/js/legend.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,6 @@ const legendData = {
17891789
},
17901790
'openrailwaymap_low-railway_line_high': {
17911791
key: [
1792-
'feature',
17931792
'state',
17941793
'train_protection',
17951794
'train_protection_construction',
@@ -1841,7 +1840,6 @@ const legendData = {
18411840
},
18421841
'high-railway_line_high': {
18431842
key: [
1844-
'feature',
18451843
'state',
18461844
'train_protection',
18471845
'train_protection_construction',

0 commit comments

Comments
 (0)