new MultiPolygon
Parameters:
| Name | Type | Description |
|---|---|---|
coordinates |
ol.geom.RawMultiPolygon | Coordinates. |
layout |
ol.geom.GeometryLayout | string | Layout. |
- Source:
- multipolygon.js, line 30
Extends
Methods
-
appendPolygon
Stability: experimental -
Parameters:
Name Type Description polygonol.geom.Polygon Polygon.
- Source:
- multipolygon.js, line 87
-
applyTransform
Stability: experimental -
Apply a transform function to the geometry. Modifies the geometry in place.
Parameters:
Name Type Description transformFnol.TransformFunction Transform.
- Inherited From:
- Source:
- simplegeometry.js, line 246
-
clone
Stability: experimental -
- Source:
- multipolygon.js, line 113
Returns:
Clone.
- Type
- ol.geom.Geometry
-
dispatchChangeEvent
Stability: experimental -
Dispatches a
changeevent. Register a listener for this event to get notified of changes.- Inherited From:
- Source:
- observable.js, line 39
Fires:
- event:change
-
getArea
Stability: experimental -
- Source:
- multipolygon.js, line 154
Returns:
Area.
- Type
- number
-
getClosestPoint
Stability: experimental -
Parameters:
Name Type Argument Description pointol.Coordinate Point.
closestPointol.Coordinate <optional>
Closest point.
- Inherited From:
- Source:
- geometry.js, line 112
Returns:
Closest point.
- Type
- ol.Coordinate
-
getCoordinates
Stability: experimental -
- Source:
- multipolygon.js, line 164
Returns:
Coordinates.
- Type
- ol.geom.RawMultiPolygon
-
getExtent
Stability: experimental -
Get the extent of the geometry.
Parameters:
Name Type Argument Description extentol.Extent <optional>
Extent.
- Inherited From:
- Source:
- simplegeometry.js, line 91
Returns:
extent Extent.
- Type
- ol.Extent
-
getFirstCoordinate
Stability: experimental -
- Inherited From:
- Source:
- simplegeometry.js, line 107
Returns:
First coordinate.
- Type
- ol.Coordinate
-
getInteriorPoints
Stability: experimental -
- Source:
- multipolygon.js, line 198
Returns:
Interior points.
- Type
- ol.geom.MultiPoint
-
getLastCoordinate
Stability: experimental -
- Inherited From:
- Source:
- simplegeometry.js, line 124
Returns:
Last point.
- Type
- ol.Coordinate
-
getLayout
Stability: experimental -
- Inherited From:
- Source:
- simplegeometry.js, line 133
Returns:
Layout.
-
getPolygon
Stability: experimental -
Parameters:
Name Type Description indexnumber Index.
- Source:
- multipolygon.js, line 250
Returns:
Polygon.
- Type
- ol.geom.Polygon
-
getPolygons
Stability: experimental -
- Source:
- multipolygon.js, line 281
Returns:
Polygons.
- Type
- Array.<ol.geom.Polygon>
-
getSimplifiedGeometry
Stability: experimental -
Parameters:
Name Type Description squaredTolerancenumber Squared tolerance.
- Inherited From:
- Source:
- simplegeometry.js, line 142
Returns:
Simplified geometry.
- Type
- ol.geom.Geometry
-
getType
Stability: experimental -
- Source:
- multipolygon.js, line 310
Returns:
Geometry type.
- Type
- ol.geom.GeometryType
-
on
Stability: experimental -
Listen for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 61
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 typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 74
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
setCoordinates
Stability: experimental -
Parameters:
Name Type Argument Description coordinatesol.geom.RawMultiPolygon Coordinates.
layoutol.geom.GeometryLayout <optional>
Layout.
- Source:
- multipolygon.js, line 320
-
transform
Stability: experimental -
Transform a geometry from one coordinate reference system to another. Modifies the geometry in place.
Parameters:
Name Type Description sourceol.proj.ProjectionLike The current projection. Can be a string identifier or a ol.proj.Projection object.
destinationol.proj.ProjectionLike The desired projection. Can be a string identifier or a ol.proj.Projection object.
- Inherited From:
- Source:
- geometry.js, line 183
Returns:
This geometry. Note that original geometry is modified in place.
- Type
- ol.geom.Geometry
-
un
Stability: experimental -
Unlisten for a certain type of event.
Parameters:
Name Type Argument Description typestring | Array.<string> The event type or array of event types.
listenerfunction The listener function.
thisObject <optional>
The object to use as
thisinlistener.- Inherited From:
- Source:
- observable.js, line 86
-
unByKey
Stability: experimental -
Removes an event listener using the key returned by
on()oronce().Parameters:
Name Type Description keygoog.events.Key Key.
- Inherited From:
- Source:
- observable.js, line 96
OpenLayers 3