GeOnDT GeOnDT for JS

Class: U3dRoadExtension

U3dRoadExtension

new U3dRoadExtension()

Methods

addPoint(point, type)

도로 생성을 위한 point 좌표를 추가하는 함수입니다.

Name Type Description
point WorldPositionVector3

도로를 생성할 좌표 (월드 좌표, EPSG:3857)

type string optional

추가할 point 방향 (start 또는 end)

checkDistance(point, target)number

새로 추가되는 point 와 도로간의 거리를 체크하여 도로 상태를 반환하는 함수입니다.
CLOSE, MAXIMUM_SIZE, NONE 세 가지 상태가 존재합니다.

Name Type Description
point WorldPositionVector3
target WorldPositionVector3 optional
Returns:
Type Description
number

computeCurve(point, isEnd)

도로 컴포넌트의 커브를 생성하는 함수입니다.

Name Type Description
point WorldPositionVector3

도로를 생성할 좌표 (월드 좌표, EPSG:3857)

isEnd boolean optional

도로 생성 시작점 (true: 끝점, false: 시작점)

editName(newName)

도로 이름을 변경하는 함수

Name Type Description
newName

도로의 새로운 이름

getCoordinates()Array

도로 컴포넌트 좌표 배열을 반환하는 함수

Returns:
Type Description
Array 좌표 배열

getCurvePoints(point)object

도로 컴포넌트의 커브 point 들을 반환하는 함수입니다.

Name Type Description
point WorldPositionVector3

도로를 생성할 좌표 (월드 좌표, EPSG:3857)

Returns:
Type Description
object point1, point2, point3 (월드 좌표)

getCurvePointsToStart(point)Object

Name Type Description
point
Returns:
Type Description
Object

getParam()Object

도로 컴포넌트 생성에 필요한 파라미터값을 반환하는 함수

Returns:
Type Description
Object 생성자 옵션(positions, width, height, imageUrl)

getRoadCenter()undefined|*

도로 센터 Position을 반환하는 함수

Returns:
Type Description
undefined | *

hide()

도로 비가시화(hide) 함수

hideLabel()

도로 라벨을 숨기는(hide) 함수

isVisibleLabel()Boolean

도로 라벨 가시화 여부를 반환하는 함수

Returns:
Type Description
Boolean 라벨 visible 여부

removeEditPoints()

도로 편집점을 제거하는 함수

removeLabel()

도로 라벨을 제거하는 함수

setCoordinates(coordinates)

도로 컴포넌트에 좌표를 지정하는 함수

Name Type Description
coordinates Array

도로 좌표 배열

setHeight(height)

도로 높이를 지정하는 함수

Name Type Description
height Number

도로 높이

setLabel(position)

원하는 위치에 도로 라벨을 설정하는 함수

Name Type Description
position

지정 좌표

setRoadImage(imageUrl)

도로 컴포넌트에 이미지를 지정하는 함수

Name Type Description
imageUrl String

이미지 소스 URL

setWidth(width)

도로 너비를 지정하는 함수

Name Type Description
width Number

도로 너비

show()

도로 가시화(show) 함수

showLabel()

도로 라벨을 보여주는(show) 함수

update(point, updateHeight, isEnd)

지형의 고도에 따라 도로 컴포넌트의 높이를 갱신하는 함수입니다.

Name Type Description
point WorldPositionVector3 optional

도로를 생성할 좌표 (월드 좌표, EPSG:3857)

updateHeight boolean optional

지형에 따른 도로 높이 update 여부

isEnd boolean optional

업데이트되는 도로의 방향 (false: 시작점, true: 끝점)

updateHeightByTerrain()

지형의 고도에 따라 도로 컴포넌트의 높이를 갱신하는 함수

updateLabel()

도로 라벨을 갱신하는 함수