Type alias FillStylePaint

FillStylePaint: {
    fill-antialias?: boolean;
    fill-color?: color;
    fill-opacity?: number | any;
    fill-outline-color?: color;
    fill-pattern?: resolvedImage;
    fill-translate?: interpolate;
    fill-translate-anchor?: "map" | "viewport";
}

FillStylepaint 속성으로 들어가는 FillStylePaint type입니다.
style의 paint 속성은 렌더링 프로세스에서 나중에 적용됩니다. paint 속성은 동기식으로 변경 가능합니다.

Type declaration

  • Optional fill-antialias?: boolean

    채우기 안티앨리어싱(그래픽 노이즈 방지) 여부입니다.

    Default

    true

  • Optional fill-color?: color

    레이어가 채워진 부분의 색상입니다.
    fill-pattern이 있으면 채우기 색상이 비활성화됩니다.
    color타입이며, RGB(rgb(119, 37, 255)), RGBA(rgba(119, 37, 255, 1)), HEX(#7725ff) 형식을 문자열로 지정할 수 있습니다.

    Default

    #000000

  • Optional fill-opacity?: number | any

    레이어가 채워진 부분의 불투명도입니다.

    Default

    1
    
  • Optional fill-outline-color?: color

    레이어가 채워진 부분의 윤곽선 색상입니다.
    fill-pattern이 있으면 윤곽선 색상이 비활성화되며, fill-antialiastrue여야 활성화됩니다.
    설정하지 않은 경우, fill-color의 색상과 일치합니다.
    color타입이며, RGB(rgb(119, 37, 255)), RGBA(rgba(119, 37, 255, 1)), HEX(#7725ff) 형식을 문자열로 지정할 수 있습니다.

  • Optional fill-pattern?: resolvedImage

    레이어가 채워진 부분으로 사용할 이미지 패턴입니다.
    Map.addImage로 추가한 이미지 id를 값으로 사용할 수 있으며, 배경으로 이미지를 설정하면 이미지가 패턴처럼 나타납니다.

  • Optional fill-translate?: interpolate

    오프셋입니다. [0,0] 형식으로 설정할 수 있고, [x거리, y거리]입니다. 음수는 왼쪽과 위쪽을 나타냅니다.

    Default

    [0,0]
    
  • Optional fill-translate-anchor?: "map" | "viewport"

    fill-translate의 프레임을 제어하며, fill-translate의 값이 있어야 활성화됩니다.

    • map : fill-translate를 map 기준으로 변환합니다.
    • viewport : fill-translate를 viewport 기준으로 변환합니다.

    Default

    map

Generated using TypeDoc