JSTerrain

지도 내 지형 설정 및 제어하기 위한 API 입니다.

Module.getTerrain() API를 생성합니다.

var map = Module.getTerrain();

Function

makeTerrainElevationCellData(option) → object

입력된 정점 좌표 목록을 기반으로 변수값 격자 구조를 생성하고 정보를 반환합니다.

격자 구조는 위치Returns information after creating GRID data with an argument variable.

NameTypeDescription

option

속성 정보.

  • 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 ).

Type Definitions

JSTerrain.GridOption

Basic Grid setting options.

NameTypeAttributesDefaultDescription

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.

NameTypeDescription

min

Lower left latitude and longitude coordinates of the Grid.

max

Upper right latitude and longitude coordinates of the Grid.

center

Center latitude and longitude coordinates of the Grid.

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.

cells

Array of Cell information composing the Grid.

JSTerrain.CellData

Data information of the Cell composing the Grid.

NameTypeDescription

type

boolean

Inclusion status of the analysis area.

elevation

number

Elevation of the cell center latitude and longitude coordinates.

min

Lower left latitude and longitude coordinates of the Cell.

max

Upper right latitude and longitude coordinates of the Cell.

center

Center latitude and longitude coordinates of the Cell.

Last updated