Skip to content

Commit

Permalink
Fixed default zoom on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sdl60660 committed Jun 21, 2022
1 parent 210e71e commit 17ec926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
container,
style: mapStyle || "mapbox://styles/mapbox/light-v10",
center: [0, 0],
minZoom: 2,
zoom: 2.001,
minZoom: window.innerWidth > 700 ? 2 : 1.4,
zoom: window.innerWidth > 700 ? 2.001 : 1.4001,
projection: "globe",
});
Expand Down Expand Up @@ -242,7 +242,7 @@
map.flyTo({
center: e.lngLat,
speed: 0.8,
zoom: 4.5,
zoom: 4.8,
});
map.once("moveend", () => {
Expand Down

1 comment on commit 17ec926

@vercel
Copy link

@vercel vercel bot commented on 17ec926 Jun 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.