Zoom to GPX after adding (#2144)

This commit is contained in:
John Firebaugh
2014-03-21 17:34:46 -07:00
parent cefa1d96f1
commit b51e5366cc

View File

@@ -140,6 +140,7 @@ iD.Background = function(context) {
reader.onload = function(e) {
gpxLayer.geojson(toGeoJSON.gpx(toDom(e.target.result)));
background.zoomToGpxLayer();
dispatch.change();
};