Skip to content

Commit

Permalink
fix the turn restriction editor not supporting bidirectional roads (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yle authored Feb 22, 2025
1 parent 8659416 commit 147c785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion modules/osm/intersection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 147c785

Please sign in to comment.