diff --git a/modules/ui/options.js b/modules/ui/options.js index b7d7bcdf..5ae560e6 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -186,6 +186,7 @@ function changeMapSize() { const maxWidth = Math.max(+mapWidthInput.value, graphWidth); const maxHeight = Math.max(+mapHeightInput.value, graphHeight); + zoom.translateExtent([ [0, 0], [maxWidth, maxHeight] @@ -196,6 +197,7 @@ function changeMapSize() { oceanLayers.select("rect").attr("x", 0).attr("y", 0).attr("width", maxWidth).attr("height", maxHeight); fogging.selectAll("rect").attr("x", 0).attr("y", 0).attr("width", maxWidth).attr("height", maxHeight); defs.select("mask#fog > rect").attr("width", maxWidth).attr("height", maxHeight); + defs.select("mask#water > rect").attr("width", maxWidth).attr("height", maxHeight); fitScaleBar(); if (window.fitLegendBox) fitLegendBox();