From 4070388d216b9a50eeae9cc5aa240a086854d7a5 Mon Sep 17 00:00:00 2001 From: Robyn Thiessen-Bock Date: Thu, 2 Nov 2023 18:26:10 -0400 Subject: [PATCH] Fix to previous commit Issue #2198 --- src/js/views/MetadataView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/views/MetadataView.js b/src/js/views/MetadataView.js index 973f429c3..c0a770fbb 100644 --- a/src/js/views/MetadataView.js +++ b/src/js/views/MetadataView.js @@ -1117,6 +1117,7 @@ define(['jquery', const z = this.getBoundsZoomLevel(bounds, mapDim); const mapLat = latLngCEN.lat(); const mapLng = latLngCEN.lng(); + const zoom = this.getBoundsZoomLevel(bounds, mapDim); return `https://maps.google.com/?ll=${mapLat},${mapLng}&z=${zoom}`; }, @@ -1133,7 +1134,7 @@ define(['jquery', */ getBoundsZoomLevel: function(bounds, mapDim) { var WORLD_DIM = { height: 256, width: 256 }; - var ZOOM_MAX = 14; + var ZOOM_MAX = 15; // 21 is actual max, but any closer and the map is too zoomed in to be // useful