Fix point positioning

This commit is contained in:
Tom MacWright
2012-11-05 11:32:23 -05:00
parent e7a895c884
commit 15b2ec0fa6
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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) {