Properties:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | 홍수 표현에 필요한 인자 객체Object for Representing Parameters Required for Flood Visualization
Properties
|
Example:
// 샌드캐슬 예제 'DiTAP - Ditap Flood' 참조
const viewer = new Ditap.DitapViewer("ditapContainer", {
fullscreenButton: true,
baseLayerPicker: true, // 배경 지도(true/false)
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();
},
}),
],
});
// 홍수 객체 선언 (positions 옵션은 선택 사항)
const options = {
viewer: viewer,
height: 250,
positions: Cesium.Cartesian3.fromDegreesArray([
-115.0, 37.0,
-115.0, 32.0,
-107.0, 33.0,
-102.0, 31.0,
-102.0, 35.0
])
};
const flood = new Ditap.DitapFlood(options);
// 홍수 시뮬레이션 실행
flood.on();
Methods
홍수 생성하여 뷰어에 표출.
Generate flood material and display in the viewer.
Generate flood material and display in the viewer.
Name | Type | Description |
---|---|---|
height |
Number | 해발고도 기준 홍수 수위(meter)Flood Water Level Based on Elevation (meters) |
홍수 시뮬레이션 종료.
End flood simulation.
End flood simulation.
홍수 시뮬레이션 실행.
Run flood simulation.
Run flood simulation.
홍수 높이 변경.
Change flood height.
Change flood height.
Name | Type | Description |
---|---|---|
height |
Number | 해발고도 기준 홍수 수위(meter)Flood Water Level Based on Elevation (meters) |
홍수 폴리곤 좌표 변경.
Change flood polygon positions.
Change flood polygon positions.
Name | Type | Description |
---|---|---|
positions |
Array | 폴리곤을 구성할 좌표 배열An array of positions to create a polygon. |
홍수 가시 여부 변경.
Change flood visibility.
Change flood visibility.
Name | Type | Description |
---|---|---|
show |
boolean | 홍수 가시 여부Flood visibility |