Hierarchy

  • TileDaoUtils

Constructors

Methods

  • Adjust the tile matrix lengths if needed. Check if the tile matrix width and height need to expand to account for pixel * number of pixels fitting into the tile matrix lengths

    Parameters

    Returns void

  • Get the approximate zoom level for length using the factor of 2 rule between zoom levels

    Returns

    approximate zoom level

    Parameters

    • lengths: number[]

      sorted lengths

    • tileMatrices: TileMatrix[]

      tile matrices

    • length: number

      length in default units

    Returns number

  • Get the approximate zoom level for the provided length in the default units. Tiles may or may not exist for the returned zoom level. The approximate zoom level is determined using a factor of 2 from the zoom levels with tiles.

    Returns

    actual or approximate tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • length: number

      length in default units

    Returns number

  • Get the approximate zoom level for the provided width and height in the default units. Tiles may or may not exist for the returned zoom level. The approximate zoom level is determined using a factor of 2 from the zoom levels with tiles.

    Returns

    actual or approximate tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • width: number

      width in default units

    • height: number

      height in default units

    Returns number

  • Get the closest zoom level for the provided width and height in the default units

    Returns

    tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • length: number

      in default units

    Returns number

  • Get the closest zoom level for the provided width and height in the default units

    Returns

    tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • width: number

      in default units

    • height: number

      in default units

    Returns number

  • Get the max length distance value from the sorted array of lengths

    Returns

    max length

    Parameters

    • lengths: number[]

      sorted tile matrix lengths

    Returns number

  • Get the max distance length that matches the tile widths and heights

    Returns

    max length

    Parameters

    • widths: number[]

      sorted tile matrix widths

    • heights: number[]

      sorted tile matrix heights

    Returns number

  • Get the min length distance value from the sorted array of lengths

    Returns

    min length

    Parameters

    • lengths: number[]

      sorted tile matrix lengths

    Returns number

  • Get the min distance length that matches the tile widths and heights

    Returns

    min length

    Parameters

    • widths: number[]

      sorted tile matrix widths

    • heights: number[]

      sorted tile matrix heights

    Returns number

  • Get the zoom level for the provided width and height in the default units

    Returns

    tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • length: number

      in default units

    Returns number

  • Get the zoom level for the provided width and height in the default units

    Returns

    tile matrix zoom level

    Parameters

    • widths: number[]

      sorted widths

    • heights: number[]

      sorted heights

    • tileMatrices: TileMatrix[]

      tile matrices

    • width: number

      in default units

    • height: number

      in default units

    Returns number

Generated using TypeDoc