Type Definitions
-
olx.style.CircleOptions{Object} experimental
-
Properties:
Name Type Argument Description fillol.style.Fill | undefined <optional>
Fill style.
radiusnumber Circle radius.
snapToPixelboolean | undefined <optional>
If
trueintegral numbers of pixels are used as the X and Y pixel coordinate when drawing the circle in the output canvas. Iffalsefractional numbers may be used. Usingtrueallows for "sharp" rendering (no blur), while usingfalseallows for "accurate" rendering. Note that accuracy is important if the circle's position is animated. Without it, the circle may jitter noticeably. Default value istrue.strokeol.style.Stroke | undefined <optional>
Stroke style.
-
olx.style.FillOptions{Object} experimental
-
olx.style.IconOptions{Object} experimental
-
Properties:
Name Type Argument Description anchorArray.<number> | undefined <optional>
Anchor. Default value is
[0.5, 0.5](icon center).anchorOriginol.style.IconOrigin | undefined <optional>
Origin of the anchor:
bottom-left,bottom-right,top-leftortop-right. Default istop-left.anchorXUnitsol.style.IconAnchorUnits | undefined <optional>
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'.anchorYUnitsol.style.IconAnchorUnits | undefined <optional>
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'.crossOriginnull | string | undefined <optional>
crossOrigin setting for image.
imgImage | undefined <optional>
Image object for the icon. If the
srcoption is not provided then the provided image must already be loaded.offsetArray.<number> | undefined <optional>
Offset, which, together with the size and the offset origin, define the sub-rectangle to use from the original icon image. Default value is
[0, 0].offsetOriginol.style.IconOrigin | undefined <optional>
Origin of the offset:
bottom-left,bottom-right,top-leftortop-right. Default istop-left.scalenumber | undefined <optional>
Scale.
snapToPixelboolean | undefined <optional>
If
trueintegral numbers of pixels are used as the X and Y pixel coordinate when drawing the icon in the output canvas. Iffalsefractional numbers may be used. Usingtrueallows for "sharp" rendering (no blur), while usingfalseallows for "accurate" rendering. Note that accuracy is important if the icon's position is animated. Without it, the icon may jitter noticeably. Default value istrue.rotateWithViewboolean | undefined <optional>
Whether to rotate the icon with the view. Default is
false.rotationnumber | undefined <optional>
Rotation.
sizeol.Size | undefined <optional>
Icon size in pixel.
srcstring Image source URI.
-
olx.style.StrokeOptions{Object} experimental
-
Properties:
Name Type Argument Description colorol.Color | string | undefined <optional>
Color. See
ol.colorfor possible formats. Default null; if null, the Canvas/renderer default black will be used.lineCapstring | undefined <optional>
Line cap style:
butt,round, orsquare. Default isround.lineJoinstring | undefined <optional>
Line join style:
bevel,round, ormiter. Default isround.lineDashArray.<number> | undefined <optional>
Line dash pattern. Default is
undefined(no dash).miterLimitnumber | undefined <optional>
Miter limit. Default is
10.widthnumber | undefined <optional>
Width.
-
olx.style.StyleOptions{Object} experimental
-
Properties:
Name Type Argument Description fillol.style.Fill | undefined <optional>
Fill style.
imageol.style.Image | undefined <optional>
Image style.
strokeol.style.Stroke | undefined <optional>
Stroke style.
textol.style.Text | undefined <optional>
Text style.
zIndexnumber | undefined <optional>
Z index.
-
olx.style.TextOptions{Object} experimental
-
Properties:
Name Type Argument Description fontstring | undefined <optional>
Font.
offsetXnumber | undefined <optional>
Horizontal text offset in pixels. A positive will shift the text right. Default is
0.offsetYnumber | undefined <optional>
Vertical text offset in pixels. A positive will shift the text down. Default is
0.scalenumber | undefined <optional>
Scale.
rotationnumber | undefined <optional>
Rotation.
textstring | undefined <optional>
Text.
textAlignstring | undefined <optional>
Text alignment.
textBaselinestring | undefined <optional>
Text base line.
fillol.style.Fill | undefined <optional>
Fill style.
strokeol.style.Stroke | undefined <optional>
Stroke style.