Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Polygon

Hierarchy

Index

Constructors

constructor

Properties

coordinates

coordinates: any

type

type: string

Methods

addVertex

  • addVertex(coordinate: Array<number>): Polygon
  • Parameters

    • coordinate: Array<number>

    Returns Polygon

bbox

  • bbox(): Array<number>
  • Returns Array<number>

close

  • Returns Polygon

contains

convexHull

envelope

hasHoles

  • hasHoles(): boolean
  • Returns boolean

holes

  • Returns Array<Polygon>

insertVertex

  • insertVertex(coordinate: Array<number>, index: number): Polygon
  • Parameters

    • coordinate: Array<number>
    • index: number

    Returns Polygon

intersects

removeVertex

  • removeVertex(index: number): Polygon
  • Parameters

    • index: number

    Returns Polygon

toGeographic

toMercator

within