Eliminate flickering

This commit is contained in:
Ansis Brammanis
2013-02-04 13:34:14 -05:00
parent ceb53a2230
commit e4a8fbd0f6

View File

@@ -17,7 +17,13 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
var loc = context.map().mouseCoordinates();
if (datum.type === 'node') {
loc = datum.loc;
if (datum.id === nodeId) {
context.surface().selectAll('.way, .node')
.filter(function (d) { return d.id === nodeId; })
.classed('active', true);
} else {
loc = datum.loc;
}
} else if (datum.type === 'midpoint' || datum.type === 'way') {
var way = datum.type === 'way' ?
datum :