mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Remove unnecessary no-op pans
This commit is contained in:
@@ -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]);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user