From 181df1d6a8f77e1c1f13b26e5b6bb8e130b127c2 Mon Sep 17 00:00:00 2001 From: Kit-p Date: Thu, 20 Oct 2022 00:19:34 +0800 Subject: [PATCH] adjust initial camera point of view of landing page globe --- client/src/components/globe/Globe.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/client/src/components/globe/Globe.jsx b/client/src/components/globe/Globe.jsx index 5723d70..440ae8b 100644 --- a/client/src/components/globe/Globe.jsx +++ b/client/src/components/globe/Globe.jsx @@ -97,6 +97,16 @@ function Globe() { } }, [arcSpawnInterval, spawnArc]) + useEffect(() => { + const initialCoordinates = { + lat: 16.8001, + lng: 48.9264, + altitude: 2.25 + } + + globeRef.current.pointOfView(initialCoordinates) + }, []) + return (