From 8d7eafccdac72a590fa30a2342fd021fe9f39bb9 Mon Sep 17 00:00:00 2001 From: Mostapha Sadeghipour Roudsari Date: Thu, 7 Jan 2016 13:55:31 -0500 Subject: [PATCH] Added replace state to zoom extents --- viewer.html | 1 + 1 file changed, 1 insertion(+) diff --git a/viewer.html b/viewer.html index 7ed2500..10315a3 100644 --- a/viewer.html +++ b/viewer.html @@ -348,6 +348,7 @@

function zoomtoextents(){ svg.call(zoom.scale(1).translate([0,0])); svg.attr("transform", "translate(0,0)scale(1)"); + replaceState(1, [0,0]); } function initialzoom(){