JSColorGrid
지도 내 2차원 격자 객체를 생성 및 설정하기 위한 API 입니다.
var colorGrid = Module.createColorGrid("ID");Function
getId() → string
var strKey = object.getId();SetGridPosition(leftTop, rightTop, rightBottom, leftBottom, altitude, row, col) → number
Name
Type
Description
var colorGrid2D = Module.createColorGrid("COLOR_GRID_2D");
var gridCellNum = colorGrid2D.SetGridPosition(new Module.JSVector2D(124.2, 39), new Module.JSVector2D(130.5, 39), new Module.JSVector2D(130.5, 34.5), new Module.JSVector2D(124.2, 34.5), 100000.0, 100, 100);SetGridPositionByCellOptions(leftTop, altitude, width, height, row, col) → number
Name
Type
Description
SetGridPositionByCellSize(leftTop, rightBottom, altitude, width, height) → number
Name
Type
Description
SetGridCellDefaultColor(color) → boolean
Name
Type
Description
SetGridCellColor(row, column, color) → boolean
Name
Type
Description
SetLeftToRightSlopeAngle(angle) → boolean
Name
Type
Description
SetLeftToRightSlopeAngleByAltitude(left, right) → boolean
Name
Type
Description
SetFrontToBackSlopeAngle(angle) → boolean
Name
Type
Description
SetFrontToBackSlopeAngleByAltitude(top, bottom) → boolean
Name
Type
Description
SetDirectionAngle(angle) → boolean
Name
Type
Description
SetTerrainUnion(union) → boolean
Name
Type
Description
SetTerrainUnionGap(altitude) → boolean
Name
Type
Description
SetDrawLine(type) → boolean
Name
Type
Description
SetGridLineColor(color) → boolean
Name
Type
Description
GetGridLeftTopPosition() → JSVector3D
GetGridRightTopPosition() → JSVector3D
GetGridLeftBottomPosition() → JSVector3D
GetGridRightBottomPosition() → JSVector3D
GetGridCellPosition(row, column) → JSVector3D
Name
Type
Description
GetGridCellRect(row, column) → JSVec3Array
Name
Type
Description
GetGridCellIndexByPosition(position) → string
Name
Type
Description
GetGridEdgeLinePosition(type, value) → JSVec3Array
Name
Type
Description
Create() → boolean
Getter / Setter
getDescription(), setDescription(desc) → string
Name
Type
Description
getName(), setName(name) → string
Name
Type
Description
getVisible(), setVisible(visible) → boolean
Name
Type
Description
createHexagonGrid(options) → boolean
Name
Type
Description
Key
Type
Required
Default
Description
Key
Type
Description
Last updated