From 49118ef02710156985a3d714a69db79e136235f6 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 11 Oct 2016 00:14:20 +0200 Subject: [PATCH] Fix typo --- web/client/utils/MapUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/utils/MapUtils.js b/web/client/utils/MapUtils.js index 0eeda77185..01b23033f5 100644 --- a/web/client/utils/MapUtils.js +++ b/web/client/utils/MapUtils.js @@ -151,7 +151,7 @@ function defaultGetZoomForExtent(extent, mapSize, minZoom, maxZoom, dpi, mapReso return diff > previous.diff ? previous : {diff: diff, zoom: index}; }, {diff: Number.POSITIVE_INFINITY, zoom: 0}); - return Math.max(0, zoom, Math.min(zoom, maxZoom)); + return Math.max(0, Math.min(zoom, maxZoom)); } /**