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.

Methods

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

style/Circle.js, line 48

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.

setRadius(radius)

style/Circle.js, line 66

Set the circle radius.

Name Type Description
radius number

Circle radius.