fix the turn restriction editor not supporting bidirectional roads (#10800)

This commit is contained in:
Kyℓe Hensel
2025-02-22 20:01:26 +11:00
committed by GitHub
parent 8659416af2
commit 147c785594
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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
+2 -1
View File
@@ -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);