MPPolygon is a collection of MPPoints that combine to form a single geographical area with a single body.

Export

Hierarchy

Constructors

Properties

_area?: number

area cache.

_bbox: number[]
_bounds?: MPBounds

bounds cache.

_coordinates: number[][][]
multiPolygon: string = "MultiPolygon"

Typename for MPMultiPolygon.

Static

point: string = "Point"

Typename for MPPoint.

Static

polygon: string = "Polygon"

Typename for MPPolygon.

Static

Accessors

  • get type(): string
  • Get the type of the polygon. see MPGeometry#polygon

    Returns string

Methods

  • Private

    Clears area and bounds cache due to geometry recalculation.

    Returns void

  • Calculates the squared distance from the point to the closest edge in the polygon.

    Parameters

    Returns Promise<number>

    Async

Generated using TypeDoc