JSTerrain
지도 내 지형 설정 및 제어하기 위한 API 입니다.
Module.getTerrain() API를 생성합니다.
var map = Module.getTerrain();
Properties
demRate
number
DEM 높이 표현 비율
recoverHSV
number
색상 조정 설정 여부
recoverHue
number
색상 Hue 조정 값
recoverSaturation
number
색상 Saturation 조정 값
recoverValue
number
색상 Value 조정 값
Function
makeTerrainElevationCellData(option) → object
입력된 정점 좌표 목록을 기반으로 변수값 격자 구조를 생성하고 정보를 반환합니다.
격자 구조는 위치Returns information after creating GRID data with an argument variable.
Return
.result: API success status ( 1 : success, 0 : failure ).
.name: Name of the operation API.
.return: API return information ( JSTerrain.GridData : Normal return value, string : Failure error code ).
getServerAltitude(options, callback) → boolean
입력된 좌표 목록에 대해 서버로부터 고도값을 요청하고, 결과를 콜백 함수로 반환합니다.
options
object
요청할 좌표 정보.
callback
function
요청 완료 후 결과 고도값을 반환하는 콜백 함수.
options 구조
level
number
요청할 지형 타일 레벨.
Return
true
: 요청 성공.false
: 파라미터 오류 또는 실패.
Error Conditions
callback
이 함수가 아닌 경우.positions
가 배열도 JSVec2Array도 아닌 경우.level
또는positions
가 누락된 경우.
Sample
Type Definitions
JSTerrain.GridOption
Basic Grid setting options.
option
List of latitude and longitude coordinates for the analysis area, coordinate list type setting.
vertical
number
optional
5
Length of the Cell composing the Grid vertically (in meters).
horizontal
number
optional
5
Length of the Cell composing the Grid horizontally (in meters).
JSTerrain.GridData
Grid return information.
vertical
number
Length of the Cell composing the Grid vertically (in meters).
verticalCount
number
Number of Cells composing the Grid vertically.
horizontal
number
Length of the Cell composing the Grid horizontally (in meters).
horizontalCount
number
Number of Cells composing the Grid horizontally.
JSTerrain.CellData
Data information of the Cell composing the Grid.
type
boolean
Inclusion status of the analysis area.
elevation
number
Elevation of the cell center latitude and longitude coordinates.
Last updated
Was this helpful?