Polygon(다각형) Geometry를 표현하는 클래스입니다.

[Polygon 생성 방법]
객체를 생성하고 PolygonLayer을 통해 맵에 Polygon을 표출할 수 있습니다.
또한 FillStyle, FillExtrusionStyle을 이용해서 스타일을 적용할 수 있습니다.

Example

new ktGms.geometry.Polygon(
[
[
[127.017422, 37.49144],
[127.018522, 37.49144],
[127.018522, 37.49294],
[127.017422, 37.49144],
]
], //좌표
{id:'1234567', name:'area500', total:975} //속성 정보
)

See

PolygonLayer Polygon Geometry를 맵에 표출하는 예제

Hierarchy (view full)

Constructors

Properties

Constructors

  • Polygon class의 생성자입니다.

    Parameters

    • Optional coordinates: number[][][]

      Polygon 좌표 배열입니다. 3차원 number 배열입니다.
      이때, Polygon의 시작점과 끝점은 동일한 좌표여야합니다.

    • Optional properties: Object

      속성 정보를 관리하는 객체입니다.

    Returns Polygon

Properties

coordinates?: number[][][]

Polygon 좌표 배열입니다. 3차원 number 배열입니다.
이때, Polygon의 시작점과 끝점은 동일한 좌표여야합니다.

properties?: Object

속성 정보를 관리하는 객체입니다.

type: string = 'Polygon'

Generated using TypeDoc