ol. ol.style

Source:
  • style.jsdoc, line 1

Classes

ol.style.Icon
ol.style.Line
ol.style.Polygon
ol.style.Rule
ol.style.Shape
ol.style.Style
ol.style.Text

Members

<static> ShapeType :string

Properties:
Name Type Default Description
CIRCLE string circle
Source:
  • shape.js, line 16

TypeDefs

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 degrees (0-360).

Source:
  • objectliterals.jsdoc, line 113

LineOptions

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

Stroke color as hex color code.

strokeOpacity number | ol.expr.Expression | undefined

Stroke opacity (0-1).

strokeWidth number | ol.expr.Expression | undefined

Stroke width in pixels.

Source:
  • objectliterals.jsdoc, line 115

PolygonOptions

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

Fill color as hex color code.

strokeColor string | ol.expr.Expression | undefined

Stroke color as hex color code.

strokeWidth number | ol.expr.Expression | undefined

Stroke width in pixels.

opacity number | ol.expr.Expression | undefined

Opacity (0-1).

Source:
  • objectliterals.jsdoc, line 117

RuleOptions

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

Filter.

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

Symbolizers.

Source:
  • objectliterals.jsdoc, line 119

ShapeOptions

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

Type.

size number | ol.expr.Expression | undefined

Size in pixels.

fillColor string | ol.expr.Expression | undefined

Fill color as hex color code.

fillOpacity number | ol.expr.Expression | undefined

Fill opacity (0-1).

strokeColor string | ol.expr.Expression | undefined

Stroke color as hex color code.

strokeOpacity number | ol.expr.Expression | undefined

Stroke opacity (0-1).

strokeWidth number | ol.expr.Expression | undefined

Stroke width in pixels.

Source:
  • objectliterals.jsdoc, line 121

StyleOptions

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

Rules.

Source:
  • objectliterals.jsdoc, line 123

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 125