reearth / resium

React components for 🌏 Cesium
https://resium.reearth.io
MIT License
727 stars 134 forks source link

how can i Setting default home view? #641

Open SeongminJaden opened 10 months ago

SeongminJaden commented 10 months ago

I want Resium to display the initial rendering screen and the screen at the coordinates I want when I click the home button.

<Viewer style={{ position: "absolute", top: 0, left: 0, right: 0, bottom: 0, borderRadius: "1vw", backgroundColor: "#7D7D7D", }} > {isButtonClicked && (

      )}
    </Viewer>
mfarmer-ara commented 10 months ago

You can use the <CameraFlyTo> component.

https://resium.reearth.io/components/CameraFlyTo