From 4ce9bedb9c1866839a4d23539a5f4cffba623edb Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 2 Jan 2014 17:36:23 -0800 Subject: [PATCH] Correct arrow direction on drawn segment (fixes #2078) --- js/id/behavior/draw_way.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/behavior/draw_way.js b/js/id/behavior/draw_way.js index eca3cc4b7..bc7d1736c 100644 --- a/js/id/behavior/draw_way.js +++ b/js/id/behavior/draw_way.js @@ -11,7 +11,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) { start = iD.Node({loc: context.graph().entity(way.nodes[startIndex]).loc}), end = iD.Node({loc: context.map().mouseCoordinates()}), segment = iD.Way({ - nodes: [start.id, end.id], + nodes: typeof index === 'undefined' ? [start.id, end.id] : [end.id, start.id], tags: _.clone(way.tags) });