removed interactive flag, fixed map pane opening

This commit is contained in:
PxlLoewe
2025-04-20 18:46:34 -07:00
parent d881b01a17
commit 61459f3052
3 changed files with 13 additions and 2 deletions

View File

@@ -1,7 +1,18 @@
"use client";
import { TileLayer } from "react-leaflet";
import { usePannelStore } from "_store/pannelStore";
import { useEffect } from "react";
import { TileLayer, useMap } from "react-leaflet";
export const BaseMaps = () => {
const map = useMap();
const isPannelOpen = usePannelStore((state) => state.isOpen);
useEffect(() => {
setTimeout(() => {
map.invalidateSize();
}, 600);
}, [isPannelOpen]);
return (
<>
<TileLayer