Namespace: style

olx. style

Type Definitions

experimental olx.style.CircleOptionsObject

Properties:
Name Type Description
fill ol.style.Fill | undefined

Fill style.

radius number

Circle radius.

stroke ol.style.Stroke | undefined

Stroke style.

experimental olx.style.FillOptionsObject

Properties:
Name Type Description
color ol.Color | string | undefined

Color.

experimental olx.style.IconOptionsObject

Properties:
Name Type Description
anchor Array.<number> | undefined

Anchor. Default value is [0.5, 0.5] (icon center).

anchorOrigin ol.style.IconAnchorOrigin | undefined

Origin of the anchor: bottom-left, bottom-right, top-left or top-right. Default is top-left.

anchorXUnits ol.style.IconAnchorUnits | undefined

Units in which the anchor x value is specified. A value of 'fraction' indicates the x value is a fraction of the icon. A value of 'pixels' indicates the x value in pixels. Default is 'fraction'.

anchorYUnits ol.style.IconAnchorUnits | undefined

Units in which the anchor y value is specified. A value of 'fraction' indicates the y value is a fraction of the icon. A value of 'pixels' indicates the y value in pixels. Default is 'fraction'.

crossOrigin null | string | undefined

crossOrigin setting for image.

scale number | undefined

Scale.

rotateWithView boolean | undefined

Whether to rotate the icon with the view. Default is false.

rotation number | undefined

Rotation.

size ol.Size | undefined

Icon size in pixel.

src string

Image source URI.

experimental olx.style.StrokeOptionsObject

Properties:
Name Type Description
color ol.Color | string | undefined

Color.

lineCap string | undefined

Line cap style: butt, round, or square. Default is round.

lineJoin string | undefined

Line join style: bevel, round, or miter. Default is round.

lineDash Array.<number> | undefined

Line dash pattern. Default is undefined (no dash).

miterLimit number | undefined

Miter limit. Default is 10.

width number | undefined

Width.

experimental olx.style.StyleOptionsObject

Properties:
Name Type Description
fill ol.style.Fill | undefined

Fill style.

image ol.style.Image | undefined

Image style.

stroke ol.style.Stroke | undefined

Stroke style.

text ol.style.Text | undefined

Text style.

zIndex number | undefined

Z index.

experimental olx.style.TextOptionsObject

Properties:
Name Type Description
font string | undefined

Font.

offsetX number | undefined

Horizontal text offset in pixels. A positive will shift the text right. Default is 0.

offsetY number | undefined

Vertical text offset in pixels. A positive will shift the text down. Default is 0.

scale number | undefined

Scale.

rotation number | undefined

Rotation.

text string | undefined

Text.

textAlign string | undefined

Text alignment.

textBaseline string | undefined

Text base line.

fill ol.style.Fill | undefined

Fill style.

stroke ol.style.Stroke | undefined

Stroke style.