mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
support highway=ladder
This commit is contained in:
+2
-2
@@ -224,11 +224,11 @@ 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, busway: true,
|
||||
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true
|
||||
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true, ladder: true
|
||||
};
|
||||
// "highway" tag values that generally do not allow motor vehicles
|
||||
export var osmPathHighwayTagValues = {
|
||||
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true
|
||||
path: true, footway: true, cycleway: true, bridleway: true, pedestrian: true, corridor: true, steps: true, ladder: true
|
||||
};
|
||||
|
||||
// "railway" tag values representing existing railroad tracks (purposely does not include 'abandoned')
|
||||
|
||||
+1
-1
@@ -111,7 +111,7 @@ Object.assign(osmWay.prototype, {
|
||||
primary_link: 4, secondary_link: 4, tertiary_link: 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
|
||||
bridleway: 2, corridor: 2, steps: 2, path: 1.5, footway: 1.5, ladder: 0.5,
|
||||
},
|
||||
railway: { // width includes ties and rail bed, not just track gauge
|
||||
rail: 2.5, light_rail: 2.5, tram: 2.5, subway: 2.5,
|
||||
|
||||
@@ -40,6 +40,7 @@ export function rendererFeatures(context) {
|
||||
'cycleway': true,
|
||||
'bridleway': true,
|
||||
'steps': true,
|
||||
'ladder': true,
|
||||
'pedestrian': true
|
||||
};
|
||||
|
||||
|
||||
@@ -120,6 +120,12 @@ export function uiFieldAccess(field, context) {
|
||||
bicycle: 'no',
|
||||
horse: 'no'
|
||||
},
|
||||
ladder: {
|
||||
foot: 'yes',
|
||||
motor_vehicle: 'no',
|
||||
bicycle: 'no',
|
||||
horse: 'no'
|
||||
},
|
||||
pedestrian: {
|
||||
foot: 'yes',
|
||||
motor_vehicle: 'no'
|
||||
|
||||
Reference in New Issue
Block a user