PopupAnalysisPicker

분석 도구 모음 팝업. DitapViewer 내부적으로 생성되어 사용하는 팝업. Analysis tool collection popup. A popup created and used internally by DitapViewer.

new Ditap.PopupAnalysisPicker(viewer, analysisObjArray, updateIsPopup)

Name Type Description
viewer DitapViewer 사용할 DitapViewer 인스턴스. The DitapViewer instance to use.
analysisObjArray Array.<object> 표시할 분석 도구 배열. Array containing analysis tools to display.
updateIsPopup function optional 팝업이 열리면 true, 닫히면 false를 인자로 호출되는 함수. Function called with true when the popup opens and false when it closes.
Examples:
// 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 Ditap.InteractionSlope(viewer),               // 경사도 분석
      new Ditap.InteractionLimitationAltitude(viewer),    // 고도 제한 분석
    ],
  },
  {
    category: "landscape-analysis",
    tools: [
      new Ditap.InteractionSolar({
        viewer: viewer,
        apiKey: "YOUR_API_KEY",   // API 키
        animation: true,
      }),                       // 일조권 분석
      new Ditap.InteractionVisibility(viewer),           // 가시권 분석
    ],
  },
  {
    category: "simulation",
    tools: [
      new Ditap.InteractionSplit(viewer),                // 분할 분석
      new Ditap.InteractionSunshine(viewer, "YOUR_API_KEY"),// 일조량 분석
    ],
  },
];

// PopupAnalysisPicker 생성 및 분석 도구 설정
const analysisPopup = new Ditap.PopupAnalysisPicker(viewer, analysisObjArray);

// 팝업을 열기
analysisPopup.open();

Extends

Members

readonly availableOnMobile : boolean

모바일 해상도에서 띄울 수 있는 팝업인지 여부. 하위 클래스에서 재정의합니다.
Whether the popup can be opened on mobile resolutions. Overridden by subclasses.
Inherited From:

Methods

appendContent(element)

컨텐츠 영역에 요소 추가.
Append element to content.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

appendFooter(element)

푸터 영역에 요소 추가.
Append element to footer.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

appendHeader(element)

헤더 영역에 요소 추가.
Append element to header.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

close()

팝업 닫기.
Close popup.

createToolPicker(viewer, obj) → Object

분석 도구 선택 객체를 생성합니다.
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.

destroy()

이 객체의 모든 리소스 제거.
Remove all resources of this object.
Inherited From:

open()

팝업 열기.
Open popup.

prependContent(element)

컨텐츠 영역 맨 앞에 요소 추가.
Prepend element to content.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

prependFooter(element)

푸터 영역 맨 앞에 요소 추가.
Prepend element to footer.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

prependHeader(element)

헤더 영역 맨 앞에 요소 추가.
Prepend element to header.
Name Type Description
element Element 추가할 요소.
Element to add.
Inherited From:

removeAllContent()

컨텐츠 영역의 모든 자식 요소 제거.
Remove all children of content.
Inherited From:

removeAllFooter()

푸터 영역의 모든 자식 요소 제거.
Remove all children of footer.
Inherited From:

removeAllHeader()

헤더 영역의 모든 자식 요소 제거.
Remove all children of header.
Inherited From:

removeContent(element)

컨텐츠 영역의 자식 요소 제거.
Remove children of content.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

removeFooter(element)

푸터 영역의 자식 요소 제거.
Remove children of footer.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

removeHeader(element)

헤더 영역의 자식 요소 제거.
Remove children of header.
Name Type Description
element Element 제거할 요소.
Element to remove.
Inherited From:

toggle(element)

팝업 활성화 on/off 기능.
Function on and off.
Name Type Description
element Element 매개변수가 없는 경우 wrapper 오픈.
If no parameter is entered, toggle wrapper.
Inherited From: