From 94399168aa5216de64f51e043b8f4dd962ef6121 Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Fri, 7 Feb 2025 21:49:49 -0500 Subject: [PATCH] Adjust zoom constraints --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index c2aec66..090727b 100755 --- a/server.js +++ b/server.js @@ -72,11 +72,11 @@ async function getSnapshotTileJson(id) { return getSnapshotBounds(id) .then(wgsBounds => { const smallestTileZoom = bboxToTile(wgsBounds)[2]; - const center = [(wgsBounds[2] + wgsBounds[0]) / 2, (wgsBounds[3] + wgsBounds[1]) / 2, Math.min(smallestTileZoom + 6, maxZoom)]; + const center = [(wgsBounds[2] + wgsBounds[0]) / 2, (wgsBounds[3] + wgsBounds[1]) / 2, Math.min(smallestTileZoom + 4, maxZoom)]; return { name: `fp-snapshot-${id}`, - minzoom: Math.min(smallestTileZoom + 3, maxZoom), + minzoom: Math.min(smallestTileZoom + 2, maxZoom), maxzoom: Math.min(smallestTileZoom + 9, maxZoom), bounds: wgsBounds, center: center,