Class: CircleStyle

ol/style/Circle~CircleStyle


import CircleStyle from 'ol/style/Circle';

Set circle style for vector features.

new CircleStyle(opt_options)

style/Circle.js, line 26
Name Type Description
options

Options.

Name Type Description
fill module:ol/style/Fill~Fill

Fill style.

radius number

Circle radius.

stroke module:ol/style/Stroke~Stroke

Stroke style.

displacement Array.<number> (defaults to [0,0])

displacement

Extends

Methods

clone(){module:ol/style/Circle~CircleStyle} inherited

style/Circle.js, line 46

Clones the style.

Returns:
The cloned style.

getAngle(){number} inherited

style/RegularShape.js, line 186

Get the angle used in generating the shape.

Returns:
Shape's rotation in radians.

getDisplacement(){Array.<number>} inherited

style/Image.js, line 119

Get the displacement of the shape

Returns:
Shape's center displacement

getFill(){module:ol/style/Fill~Fill} inherited

style/RegularShape.js, line 195

Get the fill style for the shape.

Returns:
Fill style.

getOpacity(){number} inherited

style/Image.js, line 83

Get the symbolizer opacity.

Returns:
Opacity.

getPoints(){number} inherited

style/RegularShape.js, line 248

Get the number of points for generating the shape.

Returns:
Number of points for stars and regular polygons.

getRadius(){number} inherited

style/RegularShape.js, line 257

Get the (primary) radius for the shape.

Returns:
Radius.

getRadius2(){number|undefined} inherited

style/RegularShape.js, line 266

Get the secondary radius for the shape.

Returns:
Radius2.

getRotateWithView(){boolean} inherited

style/Image.js, line 92

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number} inherited

style/Image.js, line 101

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number} inherited

style/Image.js, line 110

Get the symbolizer scale.

Returns:
Scale.

getStroke(){module:ol/style/Stroke~Stroke} inherited

style/RegularShape.js, line 283

Get the stroke style for the shape.

Returns:
Stroke style.

setOpacity(opacity) inherited

style/Image.js, line 200

Set the opacity.

Name Type Description
opacity number

Opacity.

setRadius(radius)

style/Circle.js, line 64

Set the circle radius.

Name Type Description
radius number

Circle radius.

setRotateWithView(rotateWithView) inherited

style/Image.js, line 210

Set whether to rotate the style with the view.

Name Type Description
rotateWithView boolean

Rotate with map.

setRotation(rotation) inherited

style/Image.js, line 220

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale) inherited

style/Image.js, line 229

Set the scale.

Name Type Description
scale number

Scale.