Skip to content

Commit 147c785

Browse files
authored
fix the turn restriction editor not supporting bidirectional roads (#10800)
1 parent 8659416 commit 147c785

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
6060
#### :bug: Bugfixes
6161
* Prevent degenerate ways caused by deleting a corner of a triangle ([#10003], thanks [@k-yle])
6262
* Fix briefly disappearing data layer during background layer tile layer switching transition ([#10748])
63+
* Fix the turn restriction editor not supporting bidirectional roads ([#10731], thanks [@k-yle])
6364
* Preserve imagery offset during tile layer switching transition ([#10748])
6465
* Fix the relation membership list using a non-deterministic order ([#10648], thanks [@k-yle])
6566
* Fix over-saturated map tiles near the border of the tile service's coverage area ([#10747], thanks [@hlfan])
@@ -88,6 +89,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
8889
[#10720]: https://github.com/openstreetmap/iD/issues/10720
8990
[#10722]: https://github.com/openstreetmap/iD/pull/10722
9091
[#10727]: https://github.com/openstreetmap/iD/issues/10727
92+
[#10731]: https://github.com/openstreetmap/iD/pull/10731
9193
[#10737]: https://github.com/openstreetmap/iD/pull/10737
9294
[#10747]: https://github.com/openstreetmap/iD/issues/10747
9395
[#10748]: https://github.com/openstreetmap/iD/issues/10748

modules/osm/intersection.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ export function osmIntersection(graph, startVertexId, maxDistance) {
211211
// walking the intersection graph later and rendering turn arrows.
212212

213213
function withMetadata(way, vertexIds) {
214-
var __oneWay = way.isOneWay();
214+
// bidirectional ways are two-way from an intersection's perspective
215+
var __oneWay = way.isOneWay() && !way.isBiDirectional();
215216

216217
// which affixes are key vertices?
217218
var __first = (vertexIds.indexOf(way.first()) !== -1);

0 commit comments

Comments
 (0)