A multiPolygon is a collection of MPPolygons that combine to form a single geographical area with multiple bodies.

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#multiPolygon

    Returns string

Methods

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

    Parameters

    Returns Promise<number>

    Async

Generated using TypeDoc