GeOnDT GeOnDT for JS

Class: U3dModelKmlLayer

U3dModelKmlLayer

~extends U3dVectorLayer
KML/KMZ 파일을 파싱하여 3D 형상으로 시각화하는 레이어 클래스입니다.

new U3dModelKmlLayer(opt)

Name Type Description
opt U3dModelKmlLayerCO

Members

Methods

clear()

dispose()

getBoundingBox()Box3

레이어의 BoundingBox를 반환하는 메서드입니다.

Returns:
Type Description
Box3 BoundingBox

getGeometryById(geometryId)U3dGeometry|undefined

ID 값으로 해당하는 Geometry를 반환하는 메서드입니다.

Name Type Description
geometryId string

Geometry ID

Returns:
Type Description
U3dGeometry | undefined Geometry

Type Definitions

KmlRenderStyleobject

Geometry 생성 시 사용할 수 있는 스타일 옵션 값

Properties:
Name Type Argument Default Description
visible boolean <optional>
true

가시화 여부

color ColorRepresentation <optional>

색상

opacity number <optional>

투명도

size number <optional>

타입이 Point 일 때, Point 크기

lineWidth number <optional>

타입이 Line 일 때, Line 두께

height number | string <optional>

타입이 Polygon 일 때, Polygon 높이

useLine boolean <optional>

외곽선 사용 여부

lineColor ColorRepresentation <optional>

외곽선 색상

img string <optional>

타입이 Point 일 때, 사용할 이미지 소스

setShadow boolean <optional>

그림자 사용 여부

exceptAO boolean <optional>

AO 사용 여부

depth boolean <optional>

depth 사용 여부

U3dModelKmlLayerCOobject

Properties:
Name Type Argument Default Description
baseUrl string

KML 또는 KMZ 파일 경로

kmlText string <optional>

KML text

kmlData ArrayBuffer | Uint8Array | Blob <optional>

KML 또는 KMZ 바이너리 데이터. kmlText가 없을 때 사용

heightField string <optional>
'height'

객체 높이 필드.

styleFunction U3dModelKmlLayer.types~KmlStyleFunction <optional>

스타일 콜백 함수

U3dModelKmlLayerEMIobject

U3dModelKmlLayer 이벤트 목록

Properties:
Name Type Description
COMPLETED string

'completed' : KML 파일 파싱 완료 후 호출 되는 이벤트