Make sure the vertex is visible when using the "continue this feature" quick fix for disconnected way

This commit is contained in:
Quincy Morgan
2019-02-04 11:30:48 -05:00
parent 977e667453
commit c2d72cf434
+2
View File
@@ -60,6 +60,8 @@ export function validationDisconnectedWay() {
// prefer the terminating node
vertex = endNodes[1];
}
// make sure the vertex is actually visible
context.map().zoomToEase(vertex);
context.enter(
modeDrawLine(context, way.id, context.graph(), way.affix(vertex.id), true)
);