靜態unSet the center (as coordinate) and the radius (as number) of the circle.
Center.
Radius.
可選opt_layout: GeometryLayoutLayout.
Return the closest point of the geometry to the passed point as coordinate.
Point.
可選opt_closestPoint: CoordinateClosest point.
Closest point.
Returns true if this geometry includes the specified coordinate. If the coordinate is on the boundary of the geometry, returns false.
Coordinate.
Contains coordinate.
抽象rotateRotate the geometry around a given coordinate. This modifies the geometry coordinates in place.
Rotation angle in radians.
The rotation center.
抽象scaleScale the geometry (with an optional origin). This modifies the geometry coordinates in place.
The scaling factor in the x-direction.
可選opt_sy: numberThe scaling factor in the y-direction (defaults to sx).
可選opt_anchor: CoordinateThe scale origin (defaults to the center of the geometry extent).
函數Create a simplified version of this geometry. For linestrings, this uses the the Douglas Peucker algorithm. For polygons, a quantization-based simplification is used to preserve topology.
The tolerance distance for simplification.
A new, simplified version of the original geometry.
Transform each coordinate of the geometry from one coordinate reference
system to another. The geometry is modified in place.
For example, a line will be transformed to a line and a circle to a circle.
If you do not want the geometry modified in place, first clone() it and
then use this function on the clone.
The current projection. Can be a string identifier or a ol.proj.Projection object.
The desired projection. Can be a string identifier or a ol.proj.Projection object.
This geometry. Note that original geometry is modified in place.
Listen for a certain type of event.
The event type or array of event types.
The listener function.
可選opt_this: ObjectThe object to use as this in listener.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
Listen once for a certain type of event.
The event type or array of event types.
The listener function.
可選opt_this: ObjectThe object to use as this in listener.
Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.
函數Removes an event listener using the key returned by on() or once().
Note that using the ol.Observable.unByKey static function is to
be preferred.
Center.
可選opt_radius: numberRadius.
可選opt_layout: GeometryLayoutLayout.
Classdesc
Circle geometry.
參數: center
Center.
參數: opt_radius
Radius.
參數: opt_layout
Layout.
Api