JSArrow

지도 내 3차원 모델 화살표 객체를 생성 및 설정하기 위한 API 입니다.

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

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

Function

getId() → string

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

  • Return

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

    • null: 객체가 null인 경우.

Create(position, pan, tilt, distance, radius, head_rate, arrow_radius, color) → boolean

3차원 모델 화살표 객체를 생성합니다.

pan 입력 값에 따른 회전 정보

  • 0, 360 (북쪽).

  • 90 (동쪽).

  • 180 (남쪽).

  • 270 (서쪽).

기울기 입력 값에 따른 회전 정보

  • 0 (정면).

  • tilt < 0 (위쪽).

  • tilt > 0 (아래쪽).

Name
Type
Description

position

화살표 시작 경위도.

pan

number

화살표 Y축 회전 설정.

tilt

number

화살표 X축 회전 설정.

distance

number

화살표 전체 길이 설정.

radius

number

화살대 굵기 지정.

head_rate

number

화살촉 비율.

arrow_radius

number

화살촉 굵기 지정.

color

화살표 색상 지정.

  • Return

    • true : 생성 성공.

    • false : 생성 실패.

  • Sample

Getter / Setter

getDescription(), setDescription(desc) → string

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

Name
Type
Description

desc

string

설명 문자열.

  • Return

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

    • null: 객체가 null인 경우.

getName(), setName(name) → string

객체 이름을 설정합니다.

Name
Type
Description

name

string

객체 이름.

  • Return

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

    • null: 객체가 null인 경우.

getVisible(), setVisible(visible) → boolean

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

Name
Type
Description

visible

boolean

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

  • Return

    • true: 객체 가시화 상태.

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

Last updated

Was this helpful?