Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
destination |
Cartesian3 | optional 카메라 이동하려는 목적지. 입력하지 않은 경우 현재 scene의 기본 카메라 뷰로 이동. The destination to which the camera is intended to move. If not specified, it moves to the default camera view of the current scene. |
Example:
// 1. 뷰어 선언 시 활성화
// 1-1. 기본 위치로 활성화 할 경우
const viewer = new Ditap.DitapViewer("ditapContainer", {
homeButton: true
});
// 1-2. 초기 위치 지정(Cartesian3 값만 허용)
const viewer = new Ditap.DitapViewer("ditapContainer", {
// 초기 위치 지정
homeButton: Ditap.Cartesian3.fromDegrees(
126.978275264,
37.566642192,
400
),
});
// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
// 초기위치 초기화
const destination = Ditap.Cartesian3.fromDegrees(
126.978275264,
37.566642192,
400
);
new Ditap.DitapHomeButton(
viewer,
destination
);
Extends
Members
Gets the parent container.
- Inherited From:
viewModel : HomeButtonViewModel
Gets the view model.
- Inherited From:
Methods
위젯 파괴. 영구적으로 제거하는 경우 호출.
Destroys the widget. Should be called if permanently removing the widget from layout.
위젯 파괴 여부 반환.
Returns the presence or absence of widget destroy.
Returns:
객체가 파괴 된 경우 true, 그렇지 않으면 false 반환. True if the object has been destroyed, false otherwise.