DitapCaptureButton

지도화면을 캡처하는 위젯 클래스.
A widget that captures the map screen, including the UI layout.

new Ditap.DitapCaptureButton(viewer)

Name Type Description
viewer DitapViewer 사용할 DitapViewer 인스턴스
The DitapViewer instance to use.
Example:
// 샌드캐슬 예제 'DiTAP - Ditap Print' 참조

// 1. 뷰어 선언 시 활성화
const viewer = new Ditap.DitapViewer("ditapContainer", {
capture: true});

// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const ditapCapture = new Ditap.DitapCaptureButton(viewer);

Members

viewer : DitapViewer

뷰어 인스턴스 설정.
Sets the viewer instance.

Methods

destroy()

위젯 파괴. 영구적으로 제거하는 경우 호출.
Destroys the widget. Should be called if permanently removing the widget from layout.

isDestroyed()

위젯 파괴 여부 반환.
Returns the presence or absence of widget destroy.