diff --git a/CHANGELOG.md b/CHANGELOG.md index 224899d8d..7952d8617 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ _Breaking developer changes, which may affect downstream projects or sites that #### :bug: Bugfixes * Prevent degenerate ways caused by deleting a corner of a triangle ([#10003], thanks [@k-yle]) * Fix briefly disappearing data layer during background layer tile layer switching transition ([#10748]) +* Fix the turn restriction editor not supporting bidirectional roads ([#10731], thanks [@k-yle]) * Preserve imagery offset during tile layer switching transition ([#10748]) * Fix the relation membership list using a non-deterministic order ([#10648], thanks [@k-yle]) * 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 [#10720]: https://github.com/openstreetmap/iD/issues/10720 [#10722]: https://github.com/openstreetmap/iD/pull/10722 [#10727]: https://github.com/openstreetmap/iD/issues/10727 +[#10731]: https://github.com/openstreetmap/iD/pull/10731 [#10737]: https://github.com/openstreetmap/iD/pull/10737 [#10747]: https://github.com/openstreetmap/iD/issues/10747 [#10748]: https://github.com/openstreetmap/iD/issues/10748 diff --git a/modules/osm/intersection.js b/modules/osm/intersection.js index deac83072..9e7f35b32 100644 --- a/modules/osm/intersection.js +++ b/modules/osm/intersection.js @@ -211,7 +211,8 @@ export function osmIntersection(graph, startVertexId, maxDistance) { // walking the intersection graph later and rendering turn arrows. function withMetadata(way, vertexIds) { - var __oneWay = way.isOneWay(); + // bidirectional ways are two-way from an intersection's perspective + var __oneWay = way.isOneWay() && !way.isBiDirectional(); // which affixes are key vertices? var __first = (vertexIds.indexOf(way.first()) !== -1);