Skip to content

Commit

Permalink
adjust initial camera point of view of landing page globe
Browse files Browse the repository at this point in the history
  • Loading branch information
Kit-p committed Oct 19, 2022
1 parent 929a277 commit 181df1d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/src/components/globe/Globe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<ReactGlobe
ref={globeRef}
Expand Down

0 comments on commit 181df1d

Please sign in to comment.