From e4f00e0e9e941d3920c098153e5ba969ad98e24c Mon Sep 17 00:00:00 2001 From: Steven Zhou Date: Sat, 1 Jun 2024 20:08:59 -0700 Subject: [PATCH] fixed center position error --- packages/web/src/components/Home/Home.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/Home/Home.jsx b/packages/web/src/components/Home/Home.jsx index 18a6364..917b082 100644 --- a/packages/web/src/components/Home/Home.jsx +++ b/packages/web/src/components/Home/Home.jsx @@ -129,7 +129,7 @@ export default function Home() { const [isEdit, setIsEdit] = useState(false); const [isCreate, setIsCreate] = useState(true); - const centerPosition = [33.6461, -117.8427]; + const centerPosition = L.latLng(33.6461, -117.8427); const [position, setPosition] = useState(centerPosition); const [focusLocation, setFocusLocation] = useState(); const [uploadImg, setUploadImg] = useState("");