new Polygon
Parameters:
| Name | Type | Description |
|---|---|---|
coordinates |
ol.geom.RawPolygon | Coordinates. |
layout |
ol.geom.GeometryLayout | string | Layout. |
- Source:
- polygon.js, line 29
Extends
Members
-
getType
Stability: experimental -
- Inherited From:
- Source:
- geometry.js, line 148
Methods
-
appendLinearRing
Stability: not documented -
Parameters:
Name Type Description linearRingol.geom.LinearRing Linear ring.
- Source:
- polygon.js, line 85
-
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:
- polygon.js, line 141
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 103
Returns:
Closest point.
- Type
- ol.Coordinate
-
getCoordinates
Stability: experimental -
- Source:
- polygon.js, line 151
Returns:
Coordinates.
- Type
- ol.geom.RawPolygon
-
getFirstCoordinate
Stability: not documented -
- Inherited From:
- Source:
- simplegeometry.js, line 105
Returns:
First coordinate.
- Type
- ol.Coordinate
-
getInteriorPoint
Stability: not documented -
- Source:
- polygon.js, line 183
Returns:
Interior point.
- Type
- ol.geom.Point
-
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.
-
getLinearRing
Stability: not documented -
Parameters:
Name Type Description indexnumber Index.
- Source:
- polygon.js, line 192
Returns:
Linear ring.
- Type
- ol.geom.LinearRing
-
getLinearRings
Stability: experimental -
- Source:
- polygon.js, line 208
Returns:
Linear rings.
- Type
- Array.<ol.geom.LinearRing>
-
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 62
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 75
Returns:
Unique key for the listener.
- Type
- goog.events.Key
-
setCoordinates
Stability: experimental -
Parameters:
Name Type Argument Description coordinatesol.geom.RawPolygon Coordinates.
layoutol.geom.GeometryLayout <optional>
Layout.
- Source:
- polygon.js, line 278
-
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 87
-
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 97
OpenLayers 3