diff --git a/apps/dispatch/app/_components/map/BaseMaps.tsx b/apps/dispatch/app/_components/map/BaseMaps.tsx index 89dfac16..e33d0d91 100644 --- a/apps/dispatch/app/_components/map/BaseMaps.tsx +++ b/apps/dispatch/app/_components/map/BaseMaps.tsx @@ -260,6 +260,25 @@ const NiederschlagOverlay = () => { ); }; +const SlopesOverlay = () => { + const tileLayerRef = useRef(null); + + return ( + { + tileLayerRef.current?.bringToFront(); + }, + }} + attribution="Opensnowmap.org (CC-BY-SA)" + url="http://tiles.opensnowmap.org/pistes/{z}/{x}/{y}.png?" + transparent + zIndex={1000} + /> + ); +}; + const WindfarmOutlineLayer = () => { const map = useMap(); const [isVisible, setIsVisible] = useState(false); @@ -304,7 +323,7 @@ const WindfarmOutlineLayer = () => { export const BaseMaps = () => { const map = useMap(); return ( - + @@ -322,6 +341,9 @@ export const BaseMaps = () => { + + +