Skip to content

Commit

Permalink
Fix to previous commit
Browse files Browse the repository at this point in the history
Issue #2198
  • Loading branch information
robyngit committed Nov 2, 2023
1 parent c82c15c commit 4070388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/views/MetadataView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
},
Expand All @@ -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

Expand Down

0 comments on commit 4070388

Please sign in to comment.