Name | Type | Description |
---|---|---|
measurementVolume |
MeasurementVolume | 체적량 측정 연산 및 영역 표시 클래스. Volume Measurement Calculation and Area Display Class. |
Example:
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", {
baseLayerPicker: true,
// 지형(터레인 지정)
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: function () {
return new Ditap.CesiumTerrainProvider({
url: "http://121.135.139.45:9092/tilesets/layer",
});
},
}),
],
});
const destination = Ditap.Cartesian3.fromDegrees(
126.978275264,
37.566642192,
400
);
// 카메라 이동
viewer.scene.camera.flyTo({
destination: destination,
});
const positions = [
new Ditap.Cartesian3(-3044739.446567739, 4043823.403143691,3867463.012077135),
new Ditap.Cartesian3(-3044747.714411474, 4043814.3380325786,3867466.015981707),
new Ditap.Cartesian3(-3044752.780860346, 4043817.3342751344,3867458.802892699),
];
const props = {
positions: positions,
callback: (measurementVolume) => {
// 콜백 함수를 이용하여 계산이 완료된 MeasurementVolume을 할당
const popupMeasurementVolume = new Ditap.PopupMeasurementVolume(measurementVolume);
popupMeasurementVolume.open();
}
};
const measurementVolume = new Ditap.MeasurementVolume(viewer, props);
Extends
Members
경고 알림 요소.
Warning alert element.
절토량 상세정보 요소.
Cutting volume details.
성토량 상세정보 요소.
Fill volume details.
절토량과 성토량의 합 요소.
Sum of fill volume and cutting volume.
메인 절토량 요소.
Main cutting volume.
메인 성토량 요소.
Main fill volume.
readonly measurementVolume : MeasurementVolume
체적량 측정 인스턴스.
MeasurementVolume instance.
계획고 입력 요소.
Plan height input.
계획고 입력 영역 요소.
Plan height input wrapper.
계획고 유형 목록 아이템 요소.
Plan height type items.
계획고 유형 목록 요소.
Plan height type list.
계획고 영역 요소.
Plan height wrapper.
계획고 검색 요소.
Plan height search button.
선택된 계획고 유형 요소.
Selected plan height type.
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.
계획고 유형 목록 아이콘을 닫기 상태로 변경.
Change the icon of the planning type list to the close state.
팝업 제거.
Destroy popup.
키보드 이벤트.
Keyboard input event
팝업 열기.
Open popup.
계획고 유형 목록 아이콘을 열림 상태로 변경.
Change the icon of the planning type list to the open state.
컨텐츠 영역 맨 앞에 요소 추가.
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:
절토량 상세정보 설정.
Set cutting volume details value
Name | Type | Description |
---|---|---|
value |
number | 절토량 (m³). Detail cutting volume (m³). |
성토량 상세정보 설정.
Set fill volume details value.
Name | Type | Description |
---|---|---|
value |
number | 성토량 (m³). Main fill volume (m³). |
절토량과 성토량의 합 설정.
Set total volume details value.
Name | Type | Description |
---|---|---|
value |
number | 절토량과 성토량의 합 (m³). Main total volume (m³). |
이벤트 설정.
Binding popup events.
메인 절토량 설정.
Set main cutting volume value.
Name | Type | Description |
---|---|---|
value |
number | 절토량 (m³). Main cutting volume (m³). |
메인 성토량 설정.
Set main fill volume value.
Name | Type | Description |
---|---|---|
value |
number | 성토량 (m³). Main fill volume (m³). |
계획고 설정.
Change the custom plan height text.
Name | Type | Description |
---|---|---|
value |
number | 계획고 (미터). Plan Height (meters). |
체적량 측정 유형 설정.
Change volume measurement type text.
Name | Type | Description |
---|---|---|
value |
string | 측정 유형 ["min", "max", "average", "user"]. Measurement type ["min", "max", "average", "user"]. |
팝업 활성화 on/off 기능.
Function on and off.
Name | Type | Description |
---|---|---|
element |
Element | 매개변수가 없는 경우 wrapper 오픈.If no parameter is entered, toggle wrapper. |
- Inherited From:
팝업 업데이트.
Update popup