PolygonLayer 생성 시 style로 설정할 수 있는 FillStyle입니다.
폴리곤 또는 다중 폴리곤 피쳐를 채우는 style을 설정할 수 있습니다.

Example

new ktGms.style.FillStyle(
// FillStylePaint
{
"fill-antialias": true,
"fill-color": "#ffffff",
"fill-opacity": 0.6,
"fill-outline-color": "#333eee",
"fill-translate": [50,50],
"fill-translate-anchor": "viewport"
},
// FillStyleLayout
{
"visibility":"visible",
"fill-sort-key": 3
})

See

Hierarchy

  • FillStyle

Constructors

Properties

Methods

Constructors

  • Parameters

    Returns FillStyle

Properties

FillStyle의 paint 속성입니다.

FillStyle의 layout 속성입니다.

Methods

  • Returns {
        fill-sort-key?: number;
        visibility?: visibility_type;
    }

    • Optional fill-sort-key?: number

      피처 번호입니다.
      해당 값을 기준으로 피처를 오름차순으로 정렬합니다. fill-sort-key값이 높은 피처는 값이 낮은 피처보다 위에 나타납니다.

    • Optional visibility?: visibility_type

      레이어 표시 여부입니다.

      • visible : 레이어를 표시합니다.
      • none : 레이어를 표시하지 않습니다.

      Default

      "visible"
      
  • Returns {
        fill-antialias?: boolean;
        fill-color?: color;
        fill-opacity?: any;
        fill-outline-color?: color;
        fill-pattern?: string;
        fill-translate?: any;
        fill-translate-anchor?: "map" | "viewport";
    }

    • 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?: 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?: string

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

    • Optional fill-translate?: any

      오프셋입니다. [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