fix for map load
This commit is contained in:
parent
d179e93781
commit
6c9361785a
|
|
@ -1,4 +1,23 @@
|
||||||
import MapView from "@/views/map/page";
|
"use client";
|
||||||
|
import dynamic from "next/dynamic";
|
||||||
|
|
||||||
|
const MapView = dynamic(() => import("@/views/map/page"), {
|
||||||
|
ssr: false,
|
||||||
|
loading: () => (
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
height: "100vh",
|
||||||
|
width: "100%",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
background: "#f0f0f0",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Loading map...
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
});
|
||||||
|
|
||||||
const Map = () => {
|
const Map = () => {
|
||||||
return <MapView />;
|
return <MapView />;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user