removed interactive flag, fixed map pane opening
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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.
Reference in New Issue
Block a user