라인 생성하기
라인 생성하기
function createLine() {
// 1. 라인 오브젝트 생성
var line = Module.createLineString("MY_LINE");
// 2. 라인 형태 및 속성 지정
line.createbyJson({
coordinates: [(coordinate: [[126.0, 37.0, 20], [126.002, 37.0, 20]]), (style: "XYZ")],
type: 0,
union: false,
depth: true,
color: new Module.JSColor(255, 255, 0, 0),
width: 1,
});
// 3. 레이어 생성 후 라인 저장
let layerList = new Module.JSLayerList(true);
let layer = layerList.createLayer("LINE_LAYER", Module.ELT_3DLINE);
layer.addObject(line, 0);
}step 1. 라인 오브젝트 생성
step 2. 라인 형태 및 속성 지정
coordinates
type
실선 (type : 0)
점선 (type : 3)
화살표 (type : 4)
union
union = false
union = true
depth


color
width
step 3. 레이어 생성 후 라인 저장
라인 생성 결과

Last updated




