Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 DitapViewer 인스턴스. The DitapViewer instance to use. |
analysisObjArray |
Array.<object> | 표시할 분석 도구 배열. Array containing analysis tools to display in the popup. |
Example:
// 1. 뷰어 선언 시 분석 버튼 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const analysisObjArray = [
{
category: "terrain-analysis",
tools: [
new Ditap.InteractionSlope(viewer), // 경사도 분석
],
},
{
category: "landscape-analysis",
tools: [
new Ditap.InteractionSolar(viewer), // 일조권 분석
],
},
];
new Ditap.DitapAnalysisButton(viewer, analysisObjArray);
// 2. 단독으로 선언하여 버튼을 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
const analysisObjArray = [
{
category: "urban-planning",
tools: [
new Ditap.InteractionSunshine(viewer), // 일조량 분석
],
},
];
new Ditap.DitapAnalysisButton(viewer, analysisObjArray);
Methods
팝업 닫기.
Close the popup.
팝업 열기.
Open the popup.
팝업 상태 업데이트.
Update the popup state.