Type alias InfoWindowOptions

InfoWindowOptions: {
    closeButton?: boolean;
    closeOnClick?: boolean;
    closeOnMove?: boolean;
    focusAfterOpen?: boolean;
    offset?: Offset;
    className?: string;
    maxWidth?: string;
    anchor?: "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
}

인포윈도우 생성할 때 파라미터로 들어가는 InfoWindowOptions 입니다.
인포윈도우 생성은 InfoWindow를 참고해주세요.

Type declaration

  • Optional closeButton?: boolean

    true 인 경우 인포윈도우의 오른쪽 상단에 닫기 버튼이 나타납니다.

    Default

    true
    
  • Optional closeOnClick?: boolean

    true 인 경우 지도를 클릭하면 인포윈도우가 닫힙니다.

    Default

    true
    
  • Optional closeOnMove?: boolean

    true 인 경우 지도가 이동할 때 인포윈도우가 닫힙니다.

    Default

    false
    
  • Optional focusAfterOpen?: boolean

    true 인 경우 인포윈도우는 인포윈도우 내부의 첫 번째 포커스 가능 요소에 포커스를 맞추려고 시도합니다.

    Default

    false
    
  • Optional offset?: Offset

    인포윈도우 위치에 적용되는 픽셀 오프셋입니다.
    인포윈도우 위치로부터의 거리를 지정하는 단일 숫자이며, 상수 오프셋을 지정하는 Offset 타입입니다.
    각 앵커 위치에 대한 오프셋을 지정하는 Points 객체 음수 오프셋은 왼쪽과 위쪽을 나타냅니다.
    Offset 타입은 아래와 같으며, PointLike 타입은 [number, number]와 같습니다.

    type Offset = number | PointLike | {
    "center": PointLike;
    "top": PointLike;
    "bottom": PointLike;
    "left": PointLike;
    "right": PointLike;
    "top-left": PointLike;
    "top-right": PointLike;
    "bottom-left": PointLike;
    "bottom-right": PointLike;
    }
  • Optional className?: string

    인포윈도우 컨테이너에 추가할 공백으로 구분된 CSS 클래스 이름

  • Optional maxWidth?: string

    인포윈도우 최대 너비의 CSS 속성을 설정하는 문자열입니다. 예: "350px" . 내용에 맞게 인포윈도우 크기를 조정하려면 이 속성을 "none" 으로 설정하십시오. 사용 가능한 값은 max-width에서 찾을 수 있습니다.

    Default

    "350px"
    
  • Optional anchor?: "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right"

    인포윈도우를 기준으로 인포윈도우의 중심 좌표를 둘 위치입니다. Popup#setLngLat를 통해 설정된 좌표와 가장 가깝게 위치해야 하는 인포윈도우 부분을 나타내는 문자열입니다.
    옵션은 "center" , "top" , "bottom" , "left" , "right" , "top-left" , "top-right" , "bottom-left" 및 "bottom-right" 입니다.
    설정하지 않으면 앵커가 화면에 맞게 적당한 위치로 동적으로 설정되며, 모든 위치가 적당하다면 "bottom"으로 설정됩니다.

    Default

    "bottom"
    

Generated using TypeDoc