Skip to content

Commit

Permalink
refac(map): Update maxZoom at map-level rather than per-layer
Browse files Browse the repository at this point in the history
  • Loading branch information
wkyoshida committed Sep 9, 2024
1 parent be71c3b commit 30d5b0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/components/media/MediaMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,12 @@ onMounted(() => {
type: "raster",
source: "raster-tiles",
minzoom: 0,
maxzoom: 24,
},
{
id: "cycle-layer",
type: "raster",
source: "cycle-raster-tiles",
minzoom: 0,
maxzoom: 20,
layout: {
visibility: "none",
},
Expand All @@ -222,6 +220,7 @@ onMounted(() => {
center: [parseFloat(location["lon"]), parseFloat(location["lat"])],
zoom: 15,
pitch: 20,
maxZoom: 19,
});
// MARK: Basic Controls
Expand Down

0 comments on commit 30d5b0c

Please sign in to comment.