diff --git a/lib/main.js b/lib/main.js index ea4727a..9171cae 100644 --- a/lib/main.js +++ b/lib/main.js @@ -111,7 +111,7 @@ require(["map", "infobox/main"], function (Map, Infobox) { historyDict.links[linkId(d)] = d }) - gotoAnything.reset() + gotoAnything.reset(false) gotoHistory(gotoAnything, historyDict, window.location.hash) @@ -326,12 +326,15 @@ require(["map", "infobox/main"], function (Map, Infobox) { var infobox - function resetView() { + function resetView(push) { + push = trueDefault(push) + targets.forEach( function (t) { t.resetView() }) - pushHistory() + if (push) + pushHistory() } function gotoNode(d, showMap, push) {