new Geometry
- Source:
- geometry.js, line 51
Extends
Methods
-
applyTransform
Stability: experimental -
Apply a transform function to the geometry. Modifies the geometry in place.
Parameters:
Name Type Description transformFnol.TransformFunction Transform.
- Source:
- geometry.js, line 168
-
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
-
getClosestPoint
Stability: experimental -
Parameters:
Name Type Argument Description pointol.Coordinate Point.
closestPointol.Coordinate <optional>
Closest point.
- Source:
- geometry.js, line 112
Returns:
Closest point.
- Type
- ol.Coordinate
-
getExtent
Stability: experimental -
Get the extent of the geometry.
Parameters:
Name Type Argument Description extentol.Extent <optional>
Extent.
- Source:
- geometry.js, line 144
Returns:
extent Extent.
- Type
- ol.Extent
-
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
-
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.
- 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