Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 DitapViewer 인스턴스. The DitapViewer instance to use. |
analysisObjArray |
Array.<object> | 표시할 분석 도구 배열. Array containing analysis tools to display. |
Example:
// 1. DitapViewer 생성 시 PopupAnalysisPicker 생성 가능.
// analysisTools 사용할 측정 도구 작성. 작성된 분석 도구들을 담은 팝업 분석 도구 모음 위젯 생성.
// 활성화 - 전체 활성화(analysisTools: true) 또는 부분 활성화(활성화 시킬 기능만 true)
// 비활성화 - false 또는 전달 안함
const viewer = new Ditap.DitapViewer("container", {
analysisTools: {
visibility: true, // 가시권 분석 도구 활성화
split: true, // 분할 분석 도구 활성화
solar: true, // 일조권 분석 도구 활성화
sunshine: true, // 일조량 분석 도구 활성화
limitation: true, // 고도 제한 분석 도구 활성화
}
});
// 2. 단독으로 선언하여 활성화
const viewer = new Ditap.DitapViewer("ditapContainer");
// 사용할 분석 도구 모음 초기화
const analysisObjArray = [
{
category: "terrain-analysis",
tools: [
new InteractionSlope(viewer), // 경사도 분석
new InteractionLimitationAltitude(viewer), // 고도 제한 분석
],
},
{
category: "landscape-analysis",
tools: [
new InteractionSolar({
viewer: viewer,
apiKey: "YOUR_API_KEY", // API 키
animation: true,
}), // 일조권 분석
new InteractionVisibility(viewer), // 가시권 분석
],
},
{
category: "simulation",
tools: [
new InteractionSplit(viewer), // 분할 분석
new InteractionSunshine(viewer, "YOUR_API_KEY"),// 일조량 분석
],
},
];
// PopupAnalysisPicker 생성 및 분석 도구 설정
const analysisPopup = new Ditap.PopupAnalysisPicker(viewer, analysisObjArray);
// 팝업을 열기
analysisPopup.open();
Extends
Methods
컨텐츠 영역에 요소 추가.
Append element to content.
Append element to content.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
- Inherited From:
푸터 영역에 요소 추가.
Append element to footer.
Append element to footer.
Name | Type | Description |
---|---|---|
element |
Element | 추가할 요소. Element to add. |
- Inherited From:
헤더 영역에 요소 추가.
Append element to header.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
- Inherited From:
팝업 닫기.
Close popup.
분석 도구 선택 객체를 생성합니다.
Creates an object representing a tool picker for an analysis tool.
Name | Type | Description |
---|---|---|
viewer |
DitapViewer | 사용할 DitapViewer 인스턴스.The DitapViewer instance to use. |
obj |
Object | 분석 도구 객체.Analysis tool object. |
Returns:
{ text, type, event } 형태의 객체.An object containing the text, type, and event function.
이 객체의 모든 리소스 제거.
Remove all resources of this object.
- Inherited From:
팝업 열기.
Open popup.
컨텐츠 영역 맨 앞에 요소 추가.
Prepend element to content.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
- Inherited From:
푸터 영역 맨 앞에 요소 추가.
Prepend element to footer.
Name | Type | Description |
---|---|---|
element |
Element | 추가할 요소. Element to add. |
- Inherited From:
헤더 영역 맨 앞에 요소 추가.
Prepend element to header.
Prepend element to header.
Name | Type | Description |
---|---|---|
element |
Element |
추가할 요소. Element to add. |
- Inherited From:
컨텐츠 영역의 모든 자식 요소 제거.
Remove all children of content.
- Inherited From:
푸터 영역의 모든 자식 요소 제거.
Remove all children of footer.
- Inherited From:
헤더 영역의 모든 자식 요소 제거.
Remove all children of header.
Remove all children of header.
- Inherited From:
컨텐츠 영역의 자식 요소 제거.
Remove children of content.
Name | Type | Description |
---|---|---|
element |
Element |
제거할 요소. Element to remove. |
- Inherited From:
푸터 영역의 자식 요소 제거.
Remove children of footer.
Name | Type | Description |
---|---|---|
element |
Element | 제거할 요소. Element to remove. |
- Inherited From:
헤더 영역의 자식 요소 제거.
Remove children of header.
Name | Type | Description |
---|---|---|
element |
Element |
제거할 요소. Element to remove. |
- Inherited From:
팝업 활성화 on/off 기능.
Function on and off.
Name | Type | Description |
---|---|---|
element |
Element | 매개변수가 없는 경우 wrapper 오픈.If no parameter is entered, toggle wrapper. |
- Inherited From: