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

@@ -128,7 +128,7 @@ export const SmartPopup = (
}, [map, anchor]); }, [map, anchor]);
return ( return (
<Popup {...props} className={cn("relative", wrapperClassName)} interactive> <Popup {...props} className={cn("relative", wrapperClassName)}>
<div <div
className={cn( className={cn(
"pointer-events-auto bg-base-100 relative", "pointer-events-auto bg-base-100 relative",

View File

@@ -1,7 +1,18 @@
"use client"; "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 = () => { export const BaseMaps = () => {
const map = useMap();
const isPannelOpen = usePannelStore((state) => state.isOpen);
useEffect(() => {
setTimeout(() => {
map.invalidateSize();
}, 600);
}, [isPannelOpen]);
return ( return (
<> <>
<TileLayer <TileLayer

Binary file not shown.