Add support for junction=circular (same as junction=roundabout)

(closes #4637)
This commit is contained in:
Bryan Housel
2018-01-02 13:27:11 -05:00
parent a20d26fc9b
commit 9f1b71bb7e
7 changed files with 42 additions and 0 deletions
+2
View File
@@ -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;
});
});