JSReal3D

지도 내 시설물 객체를 생성 및 설정하기 위한 API 입니다.

Module.createReal3D() API를 생성합니다.

JSReal3D는 시설물(건물) 형태를 출력하는 오브젝트 입니다.ㅏ

var object = Module.createReal3D("ID");

Function

getId() → string

객체의 고유 명칭을 반환 합니다.

  • Return

    • string: 객체 설명 문자열이 성공적으로 반환.

    • null: 객체가 null인 경우.

setElevationSectionColor(elevation, color) → boolean

시설물 객체에 대한 층별 색상 리스트를 설정합니다.

NameTypeDescription

elevation

고도 목록.

color

색상 목록.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

setFillColor(type, color) → boolean

시설물 객체의 색상을 설정합니다.

NameTypeDescription

type

boolean

true: 심플렌더링 설정. false: 일반 렌더링 설정.

color

색상값.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

setShaderType(type) → boolean

시설물 객체의 층별 색상 표시 방식을 설정합니다.

NameTypeDescription

type

number

0: 이미지. 1: 이미지 + 색상. 2: 색상.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

setStyle(style) → boolean

시설물 객체의 스타일을 설정합니다.

시설물 객체는 색상 스타일만 설정 가능합니다.

NameTypeDescription

style

스타일 속성 정보.

  • Return

    • true: 설정 성공.

    • false: 설정 실패.

getFillColor() → JSColor

시설물 객체의 색상을 반환합니다.

  • Return

    • JSColor: 반환 성공.

    • null: 반환 실패.

getPosition() → JSVector3D

시설물 객체의 중심 좌표(경도, 위도, 고도)를 반환합니다.

  • Return

getHeight() → number

시설물 객체의 높이값(in meter)을 반환합니다.

  • Return

    • number : 반환 성공.

Getter / Setter

getDescription(), setDescription(desc) → string

객체에 대한 설명을 설정합니다.

NameTypeDescription

desc

string

설명 문자열.

  • Return

    • string: 객체 설명 문자열이 성공적으로 반환.

    • null: 객체가 null인 경우.

getName(), setName(name) → string

객체 이름을 설정합니다.

NameTypeDescription

name

string

객체 이름.

  • Return

    • string: 객체 이름을 성공적을 반환

    • null: 객체가 null인 경우.

getVisible(), setVisible(visible) → boolean

객체의 가시화 유무를 설정합니다.

NameTypeDescription

visible

boolean

true: 객체 가시화. false: 객체 비가시화.

  • Return

    • true: 객체 가시화 상태.

    • false: 객체 비가시화 상태.

Last updated