From 15b2ec0fa6198ed9a65a3d50d4e43cd369a2d339 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Mon, 5 Nov 2012 11:32:23 -0500 Subject: [PATCH] Fix point positioning --- js/iD/graph/Graph.js | 1 + js/iD/renderer/Map.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/js/iD/graph/Graph.js b/js/iD/graph/Graph.js index 88ac49b16..93c9d8401 100644 --- a/js/iD/graph/Graph.js +++ b/js/iD/graph/Graph.js @@ -2,6 +2,7 @@ iD.Graph = function() { }; iD.Graph.prototype = { + // a pointer to the top of the stack. head: {}, // stack of previous versions of this datastructure diff --git a/js/iD/renderer/Map.js b/js/iD/renderer/Map.js index 8cfe517ec..8d283710f 100755 --- a/js/iD/renderer/Map.js +++ b/js/iD/renderer/Map.js @@ -143,7 +143,10 @@ iD.Map = function(elem) { .attr('xlink:href', iD.Style.markerimage) .call(dragbehavior); markers.attr('transform', function(d) { - return 'translate(' + projection([d.lon, d.lat]) + ')'; + var pt = projection([d.lon, d.lat]); + pt[0] -= 8; + pt[1] -= 8; + return 'translate(' + pt + ')'; }); if (selection.length) {