JSColorPolygon
지도 내 그라데이션 폴리곤 객체를 생성 및 설정하기 위한 API 입니다.
var colorPolygon = Module.createColorPolygon("ID");Function
getId() → string
let parameter = object.getId();SetVerticalPlane(coordinates, parts, height, startColor, endColor) → boolean
Name
Type
Description
var colorPolygon = Module.createColorPolygon("TEST_VERTICAL_POLYGON");
var basePositions = [
[129.12599597147187, 35.17339329004985, 50.0],
[129.1264736891435, 35.172432534300555, 50.0],
[129.12705822860582, 35.172119138064076, 50.0],
[129.12837813524428, 35.17198042514761, 50.0],
[129.12925806742587, 35.171677294599604, 50.0],
[129.13014427905534, 35.1712405752301, 50.0],
[129.13067851056573, 35.170639446735436, 50.0],
];
var coordinates = new Module.JSVec3Array();
var parts = new Module.Collection();
for (var i = 0; i < basePositions.length; i++) {
coordinates.push(new Module.JSVector3D(basePositions[i][0], basePositions[i][1], basePositions[i][2]));
}
parts.add(basePositions.length);
colorPolygon.SetVerticalPlane(coordinates, parts, -50.0, new Module.JSColor(0, 255, 255, 0), new Module.JSColor(255, 255, 0, 0));SetCullMode(type) → boolean
Name
Type
Description
Getter / Setter
getDescription(), setDescription(desc) → string
Name
Type
Description
getName(), setName(name) → string
Name
Type
Description
getVisible(), setVisible(visible) → boolean
Name
Type
Description
setOpacity(opacity) → void
Name
Type
Description
toLonlatArray() → object
Last updated