GARS grid labeler

Hierarchy

Constructors

  • Parameters

    • enabled: boolean
    • minZoom: number = 0
    • Optional maxZoom: number
    • Optional color: Color
    • Optional textSize: number
    • Optional buffer: number

    Returns GARSLabeler

Properties

DEFAULT_BUFFER: undefined | number = ...

Default buffer size

DEFAULT_TEXT_SIZE: undefined | number = ...

Default text size

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