Create marker Interface position을 제외한 나머지 값들은 default값 존재.

interface IMarker {
    animate?: {
        duration?: number;
        opacity?: number;
        repeat?: number;
        scale?: number;
    };
    data?: any;
    fixedSize?: boolean;
    floorId: string;
    iconOption: IMarkerIcon;
    id: string;
    x: number;
    y: number;
}

Properties

animate?: {
    duration?: number;
    opacity?: number;
    repeat?: number;
    scale?: number;
}

animate : 아이콘의 animate 속성

Type declaration

  • Optional duration?: number

    duration: (optional) animate 주기

  • Optional opacity?: number

    opacity : (optional) animate 투명도 정도 (소수점) min: 0 max:1

  • Optional repeat?: number

    repeat: (optional) animate 횟수, undefined이면 무한 반복

  • Optional scale?: number

    scale : (optional) animate 에 적용할 scale 값, fixedSize === false 면 동작 할 수 있음

data?: any

마커를 클릭했을때 반환할 정보

fixedSize?: boolean

marker 의 크기가 줌에 따라 항상 동일한 사이즈를 유지할 지 여부 default 는 true, 줌에 따라 사이즈가 변경됨 false 인 경우 입력한 마커 사이즈에 따라 size 가 고정됨

floorId: string

마커가 위치할 층의 ID. default = 현재 층

iconOption: IMarkerIcon

marker에 적용될 Icon들의 option

id: string

marker의 ID 자동 생성

x: number

marker가 위치할 좌표의 x축 값

y: number

marker가 위치할 좌표의 y축 값