Remove unnecessary no-op pans

This commit is contained in:
John Firebaugh
2013-11-22 10:52:58 -08:00
parent a3d44789f6
commit 4b3db596d7

View File

@@ -141,7 +141,6 @@ iD.Background = function(context) {
reader.onload = function(e) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result)));
dispatch.change();
context.map().pan([0, 0]);
};
reader.readAsText(f);
@@ -233,7 +232,6 @@ iD.Background = function(context) {
d3.text(gpx, function(err, gpxTxt) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(gpxTxt)));
dispatch.change();
context.map().pan([0, 0]);
});
}