Skip to content

Commit

Permalink
Github Issue mbari-org#72: Enhance Missions Detail View - Update#2
Browse files Browse the repository at this point in the history
View updates and fixes.
  • Loading branch information
ksalamy authored May 21, 2024
1 parent d2bee9c commit 4bfd3ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions smdb/smdb/static/js/map_compilation_filter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const map = L.map("map_compilation_filter");
const options = { minZoom: 1, maxZoom: 20 };
map.options.minZoom = 1.5;
map.options.maxZoom = 20;
// const options = { minZoom: 5, maxZoom: 16 };
// const options = { minZoom: 1, maxZoom: 20 };

const gmrt = L.tileLayer.wms(
"https://www.gmrt.org/services/mapserver/wms_merc?",
Expand All @@ -9,7 +12,8 @@ const gmrt = L.tileLayer.wms(
);
gmrt.addTo(map);

map.fitWorld();
map.fitWorld({minZoom: 5});

const missions = JSON.parse(
document.getElementById("missions-data").textContent
);
Expand Down

0 comments on commit 4bfd3ba

Please sign in to comment.