mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-29 07:06:04 +02:00
Add highway=corridor and universal level field
For now, `highway=corridor`: * styled like highway=pedestrian * and matches 'paths' feature filter. (closes #2687, closes #2218)
This commit is contained in:
@@ -96,6 +96,7 @@ g.midpoint .fill {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
g.midpoint.tag-highway-corridor .fill,
|
||||
g.midpoint.tag-highway-pedestrian .fill,
|
||||
g.midpoint.tag-highway-steps .fill,
|
||||
g.midpoint.tag-highway-path .fill,
|
||||
@@ -560,15 +561,18 @@ path.casing.tag-highway-living_street {
|
||||
stroke-width:6;
|
||||
}
|
||||
|
||||
path.stroke.tag-highway-corridor,
|
||||
path.stroke.tag-highway-pedestrian {
|
||||
stroke:#fff;
|
||||
stroke-dasharray: 2, 8;
|
||||
stroke-width:4;
|
||||
}
|
||||
path.casing.tag-highway-corridor,
|
||||
path.casing.tag-highway-pedestrian {
|
||||
stroke:#8cd05f;
|
||||
stroke-width:6;
|
||||
}
|
||||
path.stroke.area.tag-highway-corridor,
|
||||
path.stroke.area.tag-highway-pedestrian {
|
||||
stroke:#fff;
|
||||
stroke-dasharray: none;
|
||||
@@ -833,6 +837,7 @@ path.shadow.tag-bridge {
|
||||
path.casing.line.tag-railway.tag-bridge,
|
||||
path.casing.tag-highway-living_street.tag-bridge,
|
||||
path.casing.tag-highway-path.tag-bridge,
|
||||
path.casing.tag-highway-corridor.tag-bridge,
|
||||
path.casing.line.tag-highway-pedestrian.tag-bridge,
|
||||
path.casing.tag-highway-service.tag-bridge,
|
||||
path.casing.tag-highway-track.tag-bridge,
|
||||
@@ -846,6 +851,7 @@ path.casing.tag-highway-bridleway.tag-bridge {
|
||||
path.shadow.line.tag-railway.tag-bridge,
|
||||
path.shadow.tag-highway-living_street.tag-bridge,
|
||||
path.shadow.tag-highway-path.tag-bridge,
|
||||
path.shadow.tag-highway-corridor.tag-bridge,
|
||||
path.shadow.line.tag-highway-pedestrian.tag-bridge,
|
||||
path.shadow.tag-highway-service.tag-bridge,
|
||||
path.shadow.tag-highway-track.tag-bridge,
|
||||
@@ -871,6 +877,7 @@ path.shadow.tag-highway-bridleway.tag-bridge {
|
||||
.low-zoom path.casing.line.tag-railway.tag-bridge,
|
||||
.low-zoom path.casing.tag-highway-living_street.tag-bridge,
|
||||
.low-zoom path.casing.tag-highway-path.tag-bridge,
|
||||
.low-zoom path.casing.tag-highway-corridor.tag-bridge,
|
||||
.low-zoom path.casing.line.tag-highway-pedestrian.tag-bridge,
|
||||
.low-zoom path.casing.tag-highway-service.tag-bridge,
|
||||
.low-zoom path.casing.tag-highway-track.tag-bridge,
|
||||
@@ -884,6 +891,7 @@ path.shadow.tag-highway-bridleway.tag-bridge {
|
||||
.low-zoom path.shadow.line.tag-railway.tag-bridge,
|
||||
.low-zoom path.shadow.tag-highway-living_street.tag-bridge,
|
||||
.low-zoom path.shadow.tag-highway-path.tag-bridge,
|
||||
.low-zoom path.shadow.tag-highway-corridor.tag-bridge,
|
||||
.low-zoom path.shadow.line.tag-highway-pedestrian.tag-bridge,
|
||||
.low-zoom path.shadow.tag-highway-service.tag-bridge,
|
||||
.low-zoom path.shadow.tag-highway-track.tag-bridge,
|
||||
|
||||
@@ -507,6 +507,9 @@ en:
|
||||
length:
|
||||
# 'length=*'
|
||||
label: Length (Meters)
|
||||
level:
|
||||
# 'level=*'
|
||||
label: Level
|
||||
levels:
|
||||
# 'building:levels=*'
|
||||
label: Levels
|
||||
@@ -1993,6 +1996,11 @@ en:
|
||||
# highway=bus_stop
|
||||
name: Bus Stop
|
||||
terms: "<translate with synonyms or related terms for 'Bus Stop', separated by commas>"
|
||||
highway/corridor:
|
||||
# highway=corridor
|
||||
name: Indoor Corridor
|
||||
# 'terms: indoor'
|
||||
terms: "<translate with synonyms or related terms for 'Indoor Corridor', separated by commas>"
|
||||
highway/crossing:
|
||||
# highway=crossing
|
||||
name: Crossing
|
||||
|
||||
@@ -677,6 +677,12 @@
|
||||
"type": "number",
|
||||
"label": "Length (Meters)"
|
||||
},
|
||||
"level": {
|
||||
"key": "level",
|
||||
"type": "combo",
|
||||
"label": "Level",
|
||||
"universal": true
|
||||
},
|
||||
"levels": {
|
||||
"key": "building:levels",
|
||||
"type": "number",
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"key": "level",
|
||||
"type": "combo",
|
||||
"label": "Level",
|
||||
"universal": true
|
||||
}
|
||||
@@ -3853,6 +3853,24 @@
|
||||
"terms": [],
|
||||
"name": "Bus Stop"
|
||||
},
|
||||
"highway/corridor": {
|
||||
"icon": "highway-footway",
|
||||
"fields": [
|
||||
"width",
|
||||
"level",
|
||||
"access_simple"
|
||||
],
|
||||
"geometry": [
|
||||
"line"
|
||||
],
|
||||
"tags": {
|
||||
"highway": "corridor"
|
||||
},
|
||||
"terms": [
|
||||
"indoor"
|
||||
],
|
||||
"name": "Indoor Corridor"
|
||||
},
|
||||
"highway/crossing": {
|
||||
"fields": [
|
||||
"crossing",
|
||||
@@ -4056,6 +4074,7 @@
|
||||
"name": "Path"
|
||||
},
|
||||
"highway/pedestrian": {
|
||||
"icon": "highway-footway",
|
||||
"fields": [
|
||||
"surface",
|
||||
"lit",
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"icon": "highway-footway",
|
||||
"fields": [
|
||||
"width",
|
||||
"level",
|
||||
"access_simple"
|
||||
],
|
||||
"geometry": [
|
||||
"line"
|
||||
],
|
||||
"tags": {
|
||||
"highway": "corridor"
|
||||
},
|
||||
"terms": [
|
||||
"indoor"
|
||||
],
|
||||
"name": "Indoor Corridor"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"icon": "highway-footway",
|
||||
"fields": [
|
||||
"surface",
|
||||
"lit",
|
||||
@@ -8,7 +9,8 @@
|
||||
"access"
|
||||
],
|
||||
"geometry": [
|
||||
"line", "area"
|
||||
"line",
|
||||
"area"
|
||||
],
|
||||
"tags": {
|
||||
"highway": "pedestrian"
|
||||
|
||||
@@ -879,6 +879,10 @@
|
||||
"key": "highway",
|
||||
"value": "bus_stop"
|
||||
},
|
||||
{
|
||||
"key": "highway",
|
||||
"value": "corridor"
|
||||
},
|
||||
{
|
||||
"key": "highway",
|
||||
"value": "crossing"
|
||||
|
||||
Vendored
+7
@@ -1020,6 +1020,9 @@
|
||||
"length": {
|
||||
"label": "Length (Meters)"
|
||||
},
|
||||
"level": {
|
||||
"label": "Level"
|
||||
},
|
||||
"levels": {
|
||||
"label": "Levels",
|
||||
"placeholder": "2, 4, 6..."
|
||||
@@ -2312,6 +2315,10 @@
|
||||
"name": "Bus Stop",
|
||||
"terms": ""
|
||||
},
|
||||
"highway/corridor": {
|
||||
"name": "Indoor Corridor",
|
||||
"terms": "indoor"
|
||||
},
|
||||
"highway/crossing": {
|
||||
"name": "Crossing",
|
||||
"terms": ""
|
||||
|
||||
@@ -27,7 +27,8 @@ iD.Features = function(context) {
|
||||
'cycleway': true,
|
||||
'bridleway': true,
|
||||
'steps': true,
|
||||
'pedestrian': true
|
||||
'pedestrian': true,
|
||||
'corridor': true
|
||||
};
|
||||
|
||||
var past_futures = {
|
||||
|
||||
@@ -119,6 +119,7 @@ describe('iD.Features', function() {
|
||||
iD.Way({id: 'bridleway', tags: {highway: 'bridleway'}, version: 1}),
|
||||
iD.Way({id: 'steps', tags: {highway: 'steps'}, version: 1}),
|
||||
iD.Way({id: 'pedestrian', tags: {highway: 'pedestrian'}, version: 1}),
|
||||
iD.Way({id: 'corridor', tags: {highway: 'corridor'}, version: 1}),
|
||||
|
||||
// Buildings
|
||||
iD.Way({id: 'building_yes', tags: {area: 'yes', amenity: 'school', building: 'yes'}, version: 1}),
|
||||
@@ -266,7 +267,7 @@ describe('iD.Features', function() {
|
||||
|
||||
doMatch([
|
||||
'path', 'footway', 'cycleway', 'bridleway',
|
||||
'steps', 'pedestrian'
|
||||
'steps', 'pedestrian', 'corridor'
|
||||
]);
|
||||
|
||||
dontMatch([
|
||||
|
||||
Reference in New Issue
Block a user