mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
osmInferRestriction can just take a turn, instead of from/to
This is better because it makes explicit that osmInferRestriction needs an actual turn now (from/to with vertex, etc)
This commit is contained in:
@@ -347,7 +347,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
|
||||
} else if (datum instanceof osmTurn) {
|
||||
var actions;
|
||||
datum.restriction = osmInferRestriction(vgraph, datum.from, datum.to, projection);
|
||||
datum.restriction = osmInferRestriction(vgraph, datum, projection);
|
||||
|
||||
if (datum.restrictionID && !datum.direct) {
|
||||
return;
|
||||
@@ -436,7 +436,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
var fromWayID = datum.from.way;
|
||||
var viaWayIDs = datum.via.ways;
|
||||
var toWayID = datum.to.way;
|
||||
var restrictionType = osmInferRestriction(vgraph, datum.from, datum.to, projection);
|
||||
var restrictionType = osmInferRestriction(vgraph, datum, projection);
|
||||
|
||||
var turnType = {
|
||||
'no_left_turn': 'Left Turn',
|
||||
|
||||
Reference in New Issue
Block a user