MultiPolygon class

A GeoJSON MultiPolygon object - a JSON object that represents multiple geographic polygons. The full description is detailed in RFC 7946.

Constructors

MultiPolygon(Position[][][], BoundingBox)

Constructs a MultiPolygon.

Properties

bbox

The bounding box of the multipolygon.

coordinates

The array of polygon coordinate arrays defining the multipolygon.

type

A GeoJSON type descriptor with value "MutliPolygon".

TYPE

A static GeoJSON type descriptor for the MultiPolygon class to be used in runtime comparisons.

Constructor Details

MultiPolygon(Position[][][], BoundingBox)

Constructs a MultiPolygon.

new MultiPolygon(coordinates: Position[][][], bbox?: BoundingBox)

Parameters

coordinates

Position[][][]

The array of polygon coordinate arrays defining the multipolygon.

bbox
BoundingBox

The bounding box of the multipolygon.

Property Details

bbox

The bounding box of the multipolygon.

public bbox?: BoundingBox

Property Value

coordinates

The array of polygon coordinate arrays defining the multipolygon.

public coordinates: Position[][][]

Property Value

Position[][][]

type

A GeoJSON type descriptor with value "MutliPolygon".

public type: string

Property Value

string

TYPE

A static GeoJSON type descriptor for the MultiPolygon class to be used in runtime comparisons.

public static TYPE: string

Property Value

string