Class BaseGrids<TGrid, TZoomGrids>Abstract

Grids

Type Parameters

Hierarchy

  • BaseGrids

Constructors

Properties

properties: GridProperties

Grid properties

Methods

  • Disable the grid

    Parameters

    • grid: TGrid

      grid

    Returns void

  • Disable grids

    Parameters

    • grids: TGrid[]

      grids

    Returns void

  • Enable the grid

    Parameters

    • grid: TGrid

      grid

    Returns void

  • Enable grids

    Parameters

    • grids: TGrid[]

      grids

    Returns void

  • Get the default grid line width

    Returns

    width

    Returns number

  • Get a combined grid style from the provided color, width, and grid

    Returns

    grid style

    Parameters

    • grid: TGrid

      grid

    • Optional color: Color

      color

    • Optional width: number

      width

    Returns GridStyle

  • Get the grids for the zoom level

    Returns

    grids

    Parameters

    • zoom: number

      zoom level

    Returns undefined | TZoomGrids

  • Load the grid

    Parameters

    • grid: TGrid

      name

    • gridKey: string

      grid name key

    • labeler: Labeler

      grid labeler

    • Optional enabled: boolean

      enable created grids

    Returns void

  • Load the grid style color

    Returns

    color

    Parameters

    • gridKey: string

      grid name key

    • gridKey2: string

      second grid name key

    Returns undefined | Color

  • Load the grid style width

    Returns

    width

    Parameters

    • gridKey: string

      grid name key

    • gridKey2: string

      second grid name key

    Returns undefined | number

  • Create a new zoom grids

    Returns

    zoom grids

    Parameters

    • zoom: number

      zoom level

    Returns TZoomGrids

  • Set all label grid edge buffers

    Parameters

    • buffer: number

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

    Returns void

  • Set the grid maximum zoom

    Parameters

    • grid: TGrid

      grid

    • Optional maxZoom: number

      maximum zoom

    Returns void

  • Set the grid minimum zoom

    Parameters

    • grid: TGrid

      grid

    • minZoom: number

      minimum zoom

    Returns void

  • Set the grid zoom range

    Parameters

    • grid: TGrid

      grid

    • minZoom: number

      minimum zoom

    • Optional maxZoom: number

      maximum zoom

    Returns void

Generated using TypeDoc