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:
Bryan Housel
2015-06-30 22:02:22 -04:00
parent 56a563d345
commit 58cb66f472
11 changed files with 83 additions and 3 deletions
+8
View File
@@ -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,
+8
View File
@@ -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
+6
View File
@@ -677,6 +677,12 @@
"type": "number",
"label": "Length (Meters)"
},
"level": {
"key": "level",
"type": "combo",
"label": "Level",
"universal": true
},
"levels": {
"key": "building:levels",
"type": "number",
+6
View File
@@ -0,0 +1,6 @@
{
"key": "level",
"type": "combo",
"label": "Level",
"universal": true
}
+19
View File
@@ -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"
}
+3 -1
View File
@@ -1,4 +1,5 @@
{
"icon": "highway-footway",
"fields": [
"surface",
"lit",
@@ -8,7 +9,8 @@
"access"
],
"geometry": [
"line", "area"
"line",
"area"
],
"tags": {
"highway": "pedestrian"
+4
View File
@@ -879,6 +879,10 @@
"key": "highway",
"value": "bus_stop"
},
{
"key": "highway",
"value": "corridor"
},
{
"key": "highway",
"value": "crossing"
+7
View File
@@ -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": ""
+2 -1
View File
@@ -27,7 +27,8 @@ iD.Features = function(context) {
'cycleway': true,
'bridleway': true,
'steps': true,
'pedestrian': true
'pedestrian': true,
'corridor': true
};
var past_futures = {
+2 -1
View File
@@ -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([