| Name | Type | Description |
|---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
measurementObjArray |
Array.<object> | 표시 할 측정 도구 배열. Array containing measuring tools to display |
Example:
// 1. DitapViewer 생성 시 MeasurementToolPicker 생성 가능.
// measurementTools에 사용할 측정 도구 작성. 작성된 편집 도구들을 담은 측정 도구 모음 위젯 생성.
// 활성화 - 전체 활성화(measurementTools: true) 또는 부분 활성화(활성화 시킬 기능만 true)
// 비활성화 - false 또는 전달 안함
const viewer = new Ditap.DitapViewer("container", {
measurementTools: {
altitude: true,
straight: true,
ground: true,
plane: true,
vertical: true,
horizontal: true,
area: true,
volume: true,
}
});
// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
// 사용할 측정 도구 모음 초기화
const measurementObjArray = [
new Ditap.InteractionAltitude(),
new Ditap.InteractionLengthStraight(),
new Ditap.InteractionLengthGround(),
new Ditap.InteractionLengthPlane(),
new Ditap.InteractionLengthVertical(),
new Ditap.InteractionLengthHorizontal(),
new Ditap.InteractionArea(),
new Ditap.InteractionVolume(viewer),
];
// 측정 도구 모음 생성
const measurementToolPicker = new Ditap.MeasurementToolPicker(viewer, measurementObjArray);
Methods
측정 도구 모음 비활성화.
Deactivate the collection of measurement tools.
인스턴스 제거.
Destroys the instance.
측정 도구 모음 활성화.
Activate the collection of measurement tools.
이벤트 제거.
Remove the event registered on the window object.
Remove the event registered on the window object.
