From 6cab6c649f99e195dfdf5b141ae78f71dd4a78f9 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Mon, 17 Oct 2016 11:56:58 +0200 Subject: [PATCH] Fix typo (#1158) --- 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)); } /**