JSObject
지도 내 형태에 따라 다양한 객체가 존재하고 JSObject는 이런 다양한 객체를 포괄적으로 관리하기 위한 API 입니다.
객체 프로토 타입 API.
Function
getId() → string
객체의 고유 명칭을 반환 합니다.
Return
string: 객체 설명 문자열이 성공적으로 반환.
null: 객체가 null인 경우.
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?