mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Fix point positioning
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user