mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
Add support for junction=circular (same as junction=roundabout)
(closes #4637)
This commit is contained in:
@@ -2625,6 +2625,9 @@ en:
|
||||
name: Camp Pitch
|
||||
# 'terms: tent,rv'
|
||||
terms: '<translate with synonyms or related terms for ''Camp Pitch'', separated by commas>'
|
||||
circular:
|
||||
# junction=circular
|
||||
name: Traffic Circle
|
||||
club:
|
||||
# club=*
|
||||
name: Club
|
||||
|
||||
@@ -52,6 +52,20 @@
|
||||
"searchable": false,
|
||||
"name": "Amenity"
|
||||
},
|
||||
"circular": {
|
||||
"geometry": [
|
||||
"vertex",
|
||||
"line"
|
||||
],
|
||||
"fields": [
|
||||
"name"
|
||||
],
|
||||
"tags": {
|
||||
"junction": "circular"
|
||||
},
|
||||
"name": "Traffic Circle",
|
||||
"searchable": false
|
||||
},
|
||||
"highway": {
|
||||
"fields": [
|
||||
"name",
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"geometry": [
|
||||
"vertex",
|
||||
"line"
|
||||
],
|
||||
"fields": [
|
||||
"name"
|
||||
],
|
||||
"tags": {
|
||||
"junction": "circular"
|
||||
},
|
||||
"name": "Traffic Circle",
|
||||
"searchable": false
|
||||
}
|
||||
@@ -21,6 +21,10 @@
|
||||
{
|
||||
"key": "amenity"
|
||||
},
|
||||
{
|
||||
"key": "junction",
|
||||
"value": "circular"
|
||||
},
|
||||
{
|
||||
"key": "highway"
|
||||
},
|
||||
|
||||
Vendored
+4
@@ -2638,6 +2638,10 @@
|
||||
"name": "Amenity",
|
||||
"terms": ""
|
||||
},
|
||||
"circular": {
|
||||
"name": "Traffic Circle",
|
||||
"terms": ""
|
||||
},
|
||||
"highway": {
|
||||
"name": "Highway",
|
||||
"terms": ""
|
||||
|
||||
@@ -24,6 +24,7 @@ export var osmOneWayTags = {
|
||||
'motorway_link': true
|
||||
},
|
||||
'junction': {
|
||||
'circular': true,
|
||||
'roundabout': true
|
||||
},
|
||||
'man_made': {
|
||||
|
||||
@@ -299,6 +299,7 @@ describe('iD.osmWay', function() {
|
||||
expect(iD.Way({tags: { highway: 'motorway' }}).isOneWay(), 'motorway').to.be.true;
|
||||
expect(iD.Way({tags: { highway: 'motorway_link' }}).isOneWay(), 'motorway_link').to.be.true;
|
||||
expect(iD.Way({tags: { junction: 'roundabout' }}).isOneWay(), 'roundabout').to.be.true;
|
||||
expect(iD.Way({tags: { junction: 'circular' }}).isOneWay(), 'circular').to.be.true;
|
||||
});
|
||||
|
||||
it('returns false when the way does not have implied oneway tag', function() {
|
||||
@@ -320,6 +321,7 @@ describe('iD.osmWay', function() {
|
||||
|
||||
it('returns false when oneway=no overrides implied oneway tag', function() {
|
||||
expect(iD.Way({tags: { junction: 'roundabout', oneway: 'no' }}).isOneWay(), 'roundabout').to.be.false;
|
||||
expect(iD.Way({tags: { junction: 'circular', oneway: 'no' }}).isOneWay(), 'circular').to.be.false;
|
||||
expect(iD.Way({tags: { highway: 'motorway', oneway: 'no' }}).isOneWay(), 'motorway').to.be.false;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user