Skip to content

Commit

Permalink
Added replace state to zoom extents
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Jan 7, 2016
1 parent 9e79933 commit 8d7eafc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ <h2 class="example-description"></h2>
function zoomtoextents(){
svg.call(zoom.scale(1).translate([0,0]));
svg.attr("transform", "translate(0,0)scale(1)");
replaceState(1, [0,0]);
}

function initialzoom(){
Expand Down

0 comments on commit 8d7eafc

Please sign in to comment.