Classdesc

Set stroke style for vector features. Note that the defaults given are the Canvas defaults, which will be used if option is not defined. The get functions return whatever was entered in the options; they will not return the default.

Param: opt_options

Options.

Api

Constructors

  • Parameters

    Returns Stroke

    Classdesc

    Set stroke style for vector features. Note that the defaults given are the Canvas defaults, which will be used if option is not defined. The get functions return whatever was entered in the options; they will not return the default.

    Api

Methods

  • Get the line cap type for the stroke.

    Returns string

    Line cap.

    Api

  • Get the line dash style for the stroke.

    Returns number[]

    Line dash.

    Api

  • Get the line join type for the stroke.

    Returns string

    Line join.

    Api

  • Get the miter limit for the stroke.

    Returns number

    Miter limit.

    Api

  • Get the stroke width.

    Returns number

    Width.

    Api

  • Set the color.

    Parameters

    Returns void

    Api

  • Set the line cap.

    Parameters

    • lineCap: string

      Line cap.

    Returns void

    Api

  • Set the line dash.

    Please note that Internet Explorer 10 and lower do not support the setLineDash method on the CanvasRenderingContext2D and therefore this property will have no visual effect in these browsers.

    Parameters

    • lineDash: number[]

      Line dash.

    Returns void

    Api

  • Set the line join.

    Parameters

    • lineJoin: string

      Line join.

    Returns void

    Api

  • Set the miter limit.

    Parameters

    • miterLimit: number

      Miter limit.

    Returns void

    Api

  • Set the width.

    Parameters

    • width: number

      Width.

    Returns void

    Api

Generated using TypeDoc