Class LabelerAbstract

Grid Labeler

Hierarchy

  • Labeler

Constructors

  • Constructor

    Parameters

    • enabled: boolean

      enabled labeler

    • minZoom: number

      minimum zoom

    • maxZoom: undefined | number

      maximum zoom

    • color: undefined | Color

      label color

    • textSize: number

      label text size

    • buffer: number

      grid edge buffer (greater than or equal to 0.0 and less than 0.5)

    Returns Labeler

Methods

  • Get the grid edge buffer

    Returns

    buffer (greater than or equal to 0.0 and less than 0.5)

    Returns number

  • Get the label color

    Returns

    label color

    Returns undefined | Color

  • Get the maximum zoom level

    Returns

    maximum zoom level

    Returns undefined | number

  • Get the minimum zoom level

    Returns

    minimum zoom level

    Returns number

  • Get the label text size

    Returns

    label text size

    Returns number

  • Has a maximum zoom level

    Returns

    true if has a maximum, false if unbounded

    Returns boolean

  • Is the grid enabled

    Returns

    enabled flag

    Returns boolean

  • Is the zoom level within the grid zoom range

    Returns

    true if within range

    Parameters

    • zoom: number

      zoom level

    Returns boolean

  • Set the grid edge buffer

    Parameters

    • buffer: number

      buffer (greater than or equal to 0.0 and less than 0.5)

    Returns void

  • Set the label color

    Parameters

    • Optional color: Color

      label color

    Returns void

  • Set the enabled flag

    Parameters

    • enabled: boolean

      enabled flag

    Returns void

  • Set the maximum zoom level

    Parameters

    • Optional maxZoom: number

      maximum zoom level

    Returns void

  • Set the minimum zoom level

    Parameters

    • minZoom: number

      minimum zoom level

    Returns void

  • Set the label text size

    Parameters

    • textSize: number

      label text size

    Returns void

Generated using TypeDoc