diff --git a/components/MapView.tsx b/components/MapView.tsx index b17705c..0b692c4 100644 --- a/components/MapView.tsx +++ b/components/MapView.tsx @@ -105,6 +105,9 @@ export function MapView() { map.fitBounds(group.getBounds().pad(0.15)); } + // Force Leaflet to recalculate tile grid + setTimeout(() => map.invalidateSize(), 100); + setLoading(false); } @@ -134,17 +137,16 @@ export function MapView() { } return ( - <> +
Loading map…