ol.geom. ol.geom.MultiPolygon

new MultiPolygon

Stability: experimental
Parameters:
Name Type Argument Description
coordinates ol.geom.RawMultiPolygon

Coordinates.

layout ol.geom.GeometryLayout <optional>

Layout.

Source:
  • multipolygon.js, line 23

Extends

Members

getType

Stability: experimental
Inherited From:
Source:
  • geometry.js, line 148

Methods

dispatchChangeEvent

Stability: experimental
Inherited From:
Source:
  • observable.js, line 35

getArea

Stability: experimental
Source:
  • multipolygon.js, line 119
Returns:

Area.

Type
number

getClosestPoint

Stability: experimental
Parameters:
Name Type Argument Description
point ol.Coordinate

Point.

closestPoint ol.Coordinate <optional>

Closest point.

Inherited From:
Source:
  • geometry.js, line 103
Returns:

Closest point.

Type
ol.Coordinate

getCoordinates

Stability: experimental
Source:
  • multipolygon.js, line 129
Returns:

Coordinates.

Type
ol.geom.RawMultiPolygon

getFirstCoordinate

Stability: not documented
Inherited From:
Source:
  • simplegeometry.js, line 105
Returns:

First coordinate.

Type
ol.Coordinate

getInteriorPoints

Stability: not documented
Source:
  • multipolygon.js, line 162
Returns:

Interior points.

Type
ol.geom.MultiPoint

getLastCoordinate

Stability: not documented
Inherited From:
Source:
  • simplegeometry.js, line 121
Returns:

Last point.

Type
ol.Coordinate

getLayout

Stability: experimental
Inherited From:
Source:
  • simplegeometry.js, line 130
Returns:

Layout.

Type
ol.geom.GeometryLayout

getPolygons

Stability: experimental
Source:
  • multipolygon.js, line 212
Returns:

Polygons.

Type
Array.<ol.geom.Polygon>

on

Stability: experimental

Listen for a certain type of event.

Parameters:
Name Type Argument Description
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 58
Returns:

Unique key for the listener.

Type
goog.events.Key

once

Stability: experimental

Listen once for a certain type of event.

Parameters:
Name Type Argument Description
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 71
Returns:

Unique key for the listener.

Type
goog.events.Key

setCoordinates

Stability: experimental
Parameters:
Name Type Argument Description
coordinates ol.geom.RawMultiPolygon

Coordinates.

layout ol.geom.GeometryLayout <optional>

Layout.

Source:
  • multipolygon.js, line 245

un

Stability: experimental

Unlisten for a certain type of event.

Parameters:
Name Type Argument Description
type string | Array.<string>

The event type or array of event types.

listener function

The listener function.

this Object <optional>

The object to use as this in listener.

Inherited From:
Source:
  • observable.js, line 83

unByKey

Stability: experimental

Removes an event listener using the key returned by on() or once().

Parameters:
Name Type Description
key goog.events.Key

Key.

Inherited From:
Source:
  • observable.js, line 93