Preserve standard network layers between map pages while disposing route-owned overlays and controls to prevent memory growth.
10 lines
248 B
TypeScript
10 lines
248 B
TypeScript
"use client";
|
|
|
|
import type { ReactNode } from "react";
|
|
|
|
import MapComponent from "@components/olmap/core/MapComponent";
|
|
|
|
export default function MapLayout({ children }: { children: ReactNode }) {
|
|
return <MapComponent>{children}</MapComponent>;
|
|
}
|