diff --git a/js/id/ui/intro.js b/js/id/ui/intro.js index c3be4a17e..83e0b3241 100644 --- a/js/id/ui/intro.js +++ b/js/id/ui/intro.js @@ -9,6 +9,8 @@ iD.ui.intro = function(context) { // Save current map state var history = context.history().toJSON(), hash = window.location.hash, + center = context.map().center(), + zoom = context.map().zoom(), background = context.background().baseLayerSource(), opacity = d3.select('.background-layer').style('opacity'), loadedTiles = context.connection().loadedTiles(), @@ -62,6 +64,7 @@ iD.ui.intro = function(context) { context.history().reset().merge(d3.values(baseEntities)); context.background().baseLayerSource(background); if (history) context.history().fromJSON(history, false); + context.map().centerZoom(center, zoom); window.location.replace(hash); context.inIntro(false); d3.select('#bar button.save').on('click', save);