Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 Ditap Viewer 인스턴스. The DitapViewer instance to use. |
options |
PolygonDrawingHandler.ConstructorOptions |
optional
초기화 옵션을 설명하는 객체. An object describing initialization options. |
Members
포인트 추가 콜백 함수.
Point addition callback function.
Point addition callback function.
취소 콜백 함수.
Cancellation callback function.
Cancellation callback function.
핸들러 비/활성화 상태.
Handler enabled or disabled.
마우스 이동 콜백 함수.
Mouse movement callback function.
Mouse movement callback function.
핸들러 종료 콜백 함수.
Handler termination callback function.
Handler termination callback function.
핸들러 실행 콜백 함수.
Handler execution callback function.
Handler execution callback function.
readonly positions : Array.<Cartesian3>
추가된 좌표.
Added coordinates
Added coordinates
포인트 제거 콜백 함수.
Point removal callback function.
Point removal callback function.
인포라벨 표시 여부.
Whether to display info labels.
Whether to display info labels.
readonly viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
포인트 추가.
Add point.
Add point.
Name | Type | Description |
---|---|---|
position |
Cartesian3 |
핸들러 취소 (초기화 후 종료).
Cancel handler (exit after initialization).
Cancel handler (exit after initialization).
핸들러 초기화.
Handler initialization.
Handler initialization.
인스턴스 제거.
Remove instance.
Remove instance.
핸들러 종료.
End handler.
End handler.
핸들러 실행.
Run handler.
Run handler.
포인트 제거.
Remove Point.
Remove Point.
Type Definitions
PolygonDrawingHandler 생성자의 초기화 옵션.
Initialization options for the PolygonDrawingHandler constructor.
Initialization options for the PolygonDrawingHandler constructor.
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
showInfoLabel |
boolean |
<optional> |
true | 인포라벨 표시 여부. Whether to display info labels. |
onCallback |
function |
<optional> |
핸들러 실행 콜백 함수. Handler execution callback function. |
|
addCallback |
function |
<optional> |
포인트 추가 콜백 함수. Point addition callback function. |
|
removeCallback |
function |
<optional> |
포인트 제거 콜백 함수. Point removal callback function. |
|
cancelCallback |
function |
<optional> |
핸들러 취소 콜백 함수. Handler cancellation callback function. |
|
offCallback |
function |
<optional> |
핸들러 종료 콜백 함수. Handler termination callback function. |
|
mouseMoveCallback |
function |
<optional> |
마우스 이동 콜백 함수. Mouse movement callback function. |