fix highway=busway not supported in the turn restriction editor (#9633)

This commit is contained in:
Kyℓe Hensel
2023-11-14 21:53:23 +13:00
committed by GitHub
parent d1ccc7349f
commit 3b24932bda
6 changed files with 11 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ export function osmIntersection(graph, startVertexId, maxDistance) {
'unclassified': true,
'living_street': true,
'service': true,
'busway': true,
'road': true,
'track': true
};

View File

@@ -223,7 +223,7 @@ export var osmRightSideIsInsideTags = {
export var osmRoutableHighwayTagValues = {
motorway: true, trunk: true, primary: true, secondary: true, tertiary: true, residential: true,
motorway_link: true, trunk_link: true, primary_link: true, secondary_link: true, tertiary_link: true,
unclassified: true, road: true, service: true, track: true, living_street: true, bus_guideway: true,
unclassified: true, road: true, service: true, track: true, living_street: true, bus_guideway: true, busway: true,
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true
};
// "highway" tag values that generally do not allow motor vehicles

View File

@@ -109,7 +109,7 @@ Object.assign(osmWay.prototype, {
motorway: 5, motorway_link: 5, trunk: 4.5, trunk_link: 4.5,
primary: 4, secondary: 4, tertiary: 4,
primary_link: 4, secondary_link: 4, tertiary_link: 4,
unclassified: 4, road: 4, living_street: 4, bus_guideway: 4, pedestrian: 4,
unclassified: 4, road: 4, living_street: 4, bus_guideway: 4, busway: 4, pedestrian: 4,
residential: 3.5, service: 3.5, track: 3, cycleway: 2.5,
bridleway: 2, corridor: 2, steps: 2, path: 1.5, footway: 1.5
},

View File

@@ -25,7 +25,8 @@ export function svgLines(projection, context) {
unclassified: 8,
residential: 9,
service: 10,
footway: 11
busway: 11,
footway: 12
};

View File

@@ -212,6 +212,11 @@ export function uiFieldAccess(field, context) {
},
construction: {
access: 'no'
},
busway: {
access: 'no',
bus: 'designated',
emergency: 'yes',
}
},
barrier: {

View File

@@ -369,6 +369,7 @@ export function uiPresetIcon() {
subway: ['railway/subway', 'railway/subway', 'railway/subway'],
train: ['railway/rail', 'railway/rail', 'railway/rail'],
tram: ['railway/tram', 'railway/tram', 'railway/tram'],
railway: ['railway/rail', 'railway/rail', 'railway/rail'],
waterway: ['waterway/stream', 'waterway/stream', 'waterway/stream']
};