# new Circle(opts)
Initialization object
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
object
|
Options |
|
fill |
Fill
|
<optional> |
Fill style. |
stroke |
Stroke
|
<optional> |
Stroke style |
radius |
number
|
<optional> |
Circle radius. |
opacity |
number
|
<optional> |
Opacity. |
rotateWithView |
boolean
|
<optional> |
Whether to rotate the shape with the view (meaningful only when used in conjunction with a two dimensional scale). |
rotation |
number
|
<optional> |
Rotation in radians (positive rotation clockwise, meaningful only when used in conjunction with a two dimensional scale). |
scale |
number
|
<optional> |
Scale. A two dimensional scale will produce an ellipse. Unless two dimensional scaling is required a better result may be obtained with an appropriate setting for radius |
displacement |
number
|
<optional> |
Displacement. |
- Tutorials:
Classes
Methods
# getAnchor() → {Array.<number>}
Get the anchor point in pixels. The anchor determines the center point for the symbolizer.
Anchor.
Array.<number>
# getDisplacement() → {Array.<number>}
Get the displacement of the shape
Shape's center displacement
Array.<number>
# getRotateWithView() → {boolean}
Determine whether the symbolizer rotates with the map.
Rotate with map.
boolean
# setRotateWithView(rotateWithView)
Set whether to rotate the style with the view.
Parameters:
Name | Type | Description |
---|---|---|
rotateWithView |
boolean
|
Rotate with map. |
# setRotation(rotation)
Set the rotation.
Parameters:
Name | Type | Description |
---|---|---|
rotation |
number
|
Rotation. |