Skip to content

Commit

Permalink
Merge pull request #3 from ksalamy/ksalamy-smdb-3
Browse files Browse the repository at this point in the history
Github Issue mbari-org#72: Enhance Missions Detail View - Update#2
  • Loading branch information
ksalamy authored May 21, 2024
2 parents bcb06f3 + 4bfd3ba commit 0c94e76
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 0c94e76

Please sign in to comment.