ol. ol.style

Source:
  • style.jsdoc, line 1

Classes

ol.style.Fill
ol.style.Icon
ol.style.Rule
ol.style.Shape
ol.style.Stroke
ol.style.Style
ol.style.Text

Members

<static> ShapeType :string

Properties:
Name Type Default Description
CIRCLE string circle
Source:
  • shapeliteral.js, line 11

TypeDefs

FillOptions

Properties:
Name Type Description
color string | ol.expr.Expression | undefined

Fill color as hex color code.

opacity number | ol.expr.Expression | undefined

Opacity (0-1).

Source:
  • objectliterals.jsdoc, line 127

IconOptions

Properties:
Name Type Description
url string | ol.expr.Expression

Icon image url.

width number | ol.expr.Expression | undefined

Width of the icon in pixels. Default is the width of the icon image.

height number | ol.expr.Expression | undefined

Height of the icon in pixels. Default is the height of the icon image.

opacity number | ol.expr.Expression | undefined

Icon opacity (0-1).

rotation number | ol.expr.Expression | undefined

Rotation in radians (positive rotation clockwise).

xOffset number | ol.expr.Expression | undefined

Pixel offset from the point to the center of the icon (positive values shift image left).

yOffset number | ol.expr.Expression | undefined

Pixel offset from the point to the center of the icon (positive values shift image down).

Source:
  • objectliterals.jsdoc, line 125

RuleOptions

Properties:
Name Type Description
filter ol.expr.Expression | string | undefined

Filter.

symbolizers Array.<ol.style.Symbolizer> | undefined

Symbolizers.

Source:
  • objectliterals.jsdoc, line 129

ShapeOptions

Properties:
Name Type Description
type ol.style.ShapeType | undefined

Type.

size number | ol.expr.Expression | undefined

Size in pixels.

fill ol.style.Fill | undefined

Fill symbolizer for shape.

stroke ol.style.Stroke | undefined

Stroke symbolizer for shape.

Source:
  • objectliterals.jsdoc, line 131

StrokeOptions

Properties:
Name Type Description
color string | ol.expr.Expression | undefined

Stroke color as hex color code.

opacity number | ol.expr.Expression | undefined

Stroke opacity (0-1).

width number | ol.expr.Expression | undefined

Stroke width in pixels.

Source:
  • objectliterals.jsdoc, line 133

StyleOptions

Properties:
Name Type Description
rules Array.<ol.style.Rule> | undefined

Rules.

symbolizers Array.<ol.style.Symbolizer> | undefined

Symbolizers (that apply if no rules are provided or where none of the provided rules apply).

Source:
  • objectliterals.jsdoc, line 135

TextOptions

Properties:
Name Type Description
color string | ol.expr.Expression | undefined

Color.

fontFamily string | ol.expr.Expression | undefined

Font family.

fontSize number | ol.expr.Expression | undefined

Font size in pixels.

text string | ol.expr.Expression

Text for the label.

opacity number | ol.expr.Expression | undefined

Opacity (0-1).

Source:
  • objectliterals.jsdoc, line 137