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 24
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.

atlasManager module:ol/style/AtlasManager~AtlasManager

The atlas manager to use for this circle. When using WebGL it is recommended to use an atlas manager to avoid texture switching. If an atlas manager is given, the circle is added to an atlas. By default no atlas manager is used.

Extends

Methods

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

style/RegularShape.js, line 171

Clones the style. If an atlasmanager was provided to the original style it will be used in the cloned style, too.

Returns:
The cloned style.

getAnchor(){Array.<number>} inherited

style/RegularShape.js, line 192

Get the anchor point in pixels. The anchor determines the center point for the symbolizer.

Returns:
Anchor.

getAngle(){number} inherited

style/RegularShape.js, line 201

Get the angle used in generating the shape.

Returns:
Shape's rotation in radians.

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

style/RegularShape.js, line 210

Get the fill style for the shape.

Returns:
Fill style.

getImage(pixelRatio){HTMLCanvasElement|HTMLVideoElement|HTMLImageElement} inherited

style/RegularShape.js, line 225

Get the image element for the symbolizer.

Name Type Description
pixelRatio number

Pixel ratio.

Returns:
Image element.

getOrigin(){Array.<number>} inherited

style/RegularShape.js, line 254

Get the origin of the symbolizer.

Returns:
Origin.

getPoints(){number} inherited

style/RegularShape.js, line 263

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 272

Get the (primary) radius for the shape.

Returns:
Radius.

getRadius2(){number|undefined} inherited

style/RegularShape.js, line 281

Get the secondary radius for the shape.

Returns:
Radius2.

getSize(){module:ol/size~Size} inherited

style/RegularShape.js, line 289

Get the size of the symbolizer (in pixels).

Returns:
Size.

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

style/RegularShape.js, line 298

Get the stroke style for the shape.

Returns:
Stroke style.

setRadius(radius)

style/Circle.js, line 66

Set the circle radius.

Name Type Description
radius number

Circle radius.