new Circle
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
center |
ol.geom.RawPoint | Center. |
|
radius |
number |
<optional> |
Radius. |
layout |
ol.geom.GeometryLayout | string | Layout. |
- Source:
- circle.js, line 19
Extends
Members
-
getType
Stability: experimental -
- Inherited From:
- Source:
- geometry.js, line 148
Methods
-
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
-
getCenter
Stability: experimental -
- Source:
- circle.js, line 84
Returns:
Center.
- Type
- ol.geom.RawPoint
-
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
-
getFirstCoordinate
Stability: not documented -
- Inherited From:
- Source:
- simplegeometry.js, line 105
Returns:
First coordinate.
- Type
- ol.Coordinate
-
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.
-
getRadius
Stability: experimental -
- Source:
- circle.js, line 111
Returns:
Radius.
- Type
- number
-
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
-
setCenter
Stability: experimental -
Parameters:
Name Type Description centerol.geom.RawPoint Center.
- Source:
- circle.js, line 147
-
setCenterAndRadius
Stability: experimental -
Parameters:
Name Type Argument Description centerol.geom.RawPoint Center.
radiusnumber Radius.
layoutol.geom.GeometryLayout <optional>
Layout.
- Source:
- circle.js, line 167
-
setRadius
Stability: experimental -
Parameters:
Name Type Description radiusnumber Radius.
- Source:
- circle.js, line 206
-
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