Classdesc

Set text style for vector features.

Param: opt_options

Options.

Api

Constructors

Methods

  • Get the fill style for the text.

    Returns Fill

    Fill style.

    Api

  • Get the font name.

    Returns string

    Font.

    Api

  • Get the x-offset for the text.

    Returns number

    Horizontal text offset.

    Api

  • Get the y-offset for the text.

    Returns number

    Vertical text offset.

    Api

  • Determine whether the text rotates with the map.

    Returns boolean

    Rotate with map.

    Api

  • Get the text rotation.

    Returns number

    Rotation.

    Api

  • Get the text scale.

    Returns number

    Scale.

    Api

  • Get the stroke style for the text.

    Returns Stroke

    Stroke style.

    Api

  • Get the text to be rendered.

    Returns string

    Text.

    Api

  • Get the text alignment.

    Returns string

    Text align.

    Api

  • Get the text baseline.

    Returns string

    Text baseline.

    Api

  • Set the fill.

    Parameters

    • fill: Fill

      Fill style.

    Returns void

    Api

  • Set the font.

    Parameters

    • font: string

      Font.

    Returns void

    Api

  • Set the x offset.

    Parameters

    • offsetX: number

      Horizontal text offset.

    Returns void

    Api

  • Set the y offset.

    Parameters

    • offsetY: number

      Vertical text offset.

    Returns void

    Api

  • Set the rotation.

    Parameters

    • rotation: number

      Rotation.

    Returns void

    Api

  • Set the scale.

    Parameters

    • scale: number

      Scale.

    Returns void

    Api

  • Set the stroke.

    Parameters

    Returns void

    Api

  • Set the text.

    Parameters

    • text: string

      Text.

    Returns void

    Api

  • Set the text alignment.

    Parameters

    • textAlign: string

      Text align.

    Returns void

    Api

  • Set the text baseline.

    Parameters

    • textBaseline: string

      Text baseline.

    Returns void

    Api

Generated using TypeDoc