Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
아래 속성 포함 객체.Object with the following properties:
|
Example:
// 샌드캐슬 예제 'DiTAP - Altitude Measurement' 참조
const viewer = new DitapViewer("ditapContainer");
// 1. 지정된 영역 생성. (InteractionAltitude를 통한 수정 불가.)
const position = new Ditap.Cartesian3(-3044793.4521523346, 4043760.1510156766, 3867436.511895938);
const options = {
viewer: viewer,
position: position,
entityColor: Color.fromBytes(252, 76, 2, 255),
useCoordinateSystems: ["EPSG:4326", "EPSG:5178", "EPSG:5186"],
};
const measurementAltitude = new Ditap.MeasurementAltitude(options);
// 2. 마우스로 영역 지정 후 생성. (InteractionAltitude를 통해 고도 측정 및 영역 표시.)
const measurementAltitude = new Ditap.MeasurementAltitude({
viewer: viewer,
useCoordinateSystems: ["EPSG:4326", "EPSG:5178", "EPSG:5186"],
});
const interactionAltitude = new Ditap.InteractionAltitude();
interactionAltitude.measurementAltitude = measurementAltitude;
Members
측정된 고도 값.
Measured altitude value.
포인트 엔티티 색상.
Color of the point entity.
Color of the point entity.
readonly pointEntity : Entity
고도 측정 후 생성된 Point Entity.
Point entity created after altitude measurement.
readonly position : Cartesian3
고도 측정 할 Cartesian 좌표.
Altitude measurement cartesian.
viewer : DitapViewer
사용할 Ditap Viewer 인스턴스.
The DitapViewer instance to use.
Methods
Cartesian 좌표를 EPSG:4326 좌표로 변환.
Convert Cartesian3 to EPSG:4326 coordinates.
Name | Type | Description |
---|---|---|
position |
Cartesian3 | 변환할 Cartesian 좌표. Cartesian3 to convert. |
Returns:
변환된 좌표 객체. Converted coordinates object.
좌표계를 기준으로 변환.
지원되는 좌표계에 대해서만 변환을 시도하고, 지원되지 않는 좌표계는 무시합니다.
Name | Type | Description |
---|---|---|
position |
Cartesian3 | 변환할 Cartesian 좌표. |
Returns:
변환된 좌표 객체.
인스턴스 파괴. 영구적으로 제거하는 경우 호출.
Destroys the instance. Should be called if permanently removing the instance from layout.