Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Cesium.Viewer | Cesium Viewer 인스턴스.Cesium Viewer instance. | ||||||||||||||||||||||||
options |
Object |
optional
옵션.Options.
|
Example:
// 샌드캐슬 예제 'DiTAP - Slope' 참조
const getUrlFromBase64 = (base64Data) => {
const b64Data = base64Data;
const byteCharacters = window.atob(b64Data);
const byteNumbers = new Array(byteCharacters.length);
for (let i = 0; i < byteCharacters.length; i++) {
byteNumbers[i] = byteCharacters.charCodeAt(i);
}
const byteArray = new Uint8Array(byteNumbers);
const blob = new Blob([byteArray], { type: "image/png" });
return URL.createObjectURL(blob);
};
const viewer = new Ditap.DitapViewer("ditapContainer", {
fullscreenButton: true,
baseLayerPicker: true,
// 지형(터레인 지정)
// 디폴트 지형 : Ditap Korea Terrain
terrainProviderViewModels: [
new Ditap.ProviderViewModel({
name: "Ditap Korea Terrain",
iconUrl: getUrlFromBase64(Ditap.ConstantUrl.DITAP_TERRAIN_IMG_URL),
tooltip: "WGS84 standard ellipsoid, also known as EPSG:4326",
category: "Ditap",
creationFunction: () => {
return Ditap.NationwideTerrainProvider.create();
},
}),
],
});
// 경사도 분석 팝업 생성
const PopupAnalysisSlope = new Ditap.PopupAnalysisSlope(viewer);
// 경사도 분석 팝업 실행
PopupAnalysisSlope.open();
Members
analysisSlope : AnalysisSlope
경사도 엔티티 표시 인스턴스.
Set the slope analysis entity display instance.
Set the slope analysis entity display instance.
분석 영역 크기.
analysis area size.
analysis area size.
핸들러 비/활성화 상태.
Handler enabled or disabled.
영역 지정 방법 설정("point", "area").
Set the area specification method.
Set the area specification method.
Methods
인스턴스 파괴.
Destroy the instance.
경사도 분석 핸들러 종료.
End the slope analysis handler.
End the slope analysis handler.
경사도 분석 핸들러 활성화.
Activate the slope analysis handler.
Activate the slope analysis handler.