Remove Map#redraw calls from modes

Map#redraw no longer accepts an argument, and changes to
the history automatically trigger a redraw.

It should be possible to calculate a set of changed entities
between two history versions, and redraw only those entities.
This commit is contained in:
John Firebaugh
2012-12-04 11:25:48 -05:00
parent 516c4b8c48
commit e3e17203cf
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -173,8 +173,6 @@ iD.modes.DrawRoad = function(way_id, direction) {
lon: ll[0], lat: ll[1]
});
this.history.replace(iD.actions.addWayNode(way, node));
var only = iD.Util.trueObj([way.id].concat(_.pluck(way.nodes, 'id')));
this.map.redraw(only);
}
function click() {
@@ -319,8 +317,6 @@ iD.modes.DrawArea = function(way_id) {
lat: ll[1]
});
this.history.replace(iD.actions.addWayNode(way, node));
var only = iD.Util.trueObj([way.id].concat(_.pluck(way.nodes, 'id')));
this.map.redraw(only);
}
function click() {
-1
View File
@@ -600,7 +600,6 @@ iD.Map = function() {
map.background = background;
map.projection = projection;
map.redraw = redraw;
map.selectEntity = selectEntity;
map.dblclickEnable = dblclickEnable;