Tile utilities and constants

Hierarchy

  • TileUtils

Constructors

Properties

TILE_DP: 256 = 256

Displayed device-independent pixels

TILE_PIXELS_DEFAULT: 256 = TileUtils.TILE_DP

Tile pixels for default dpi tiles

TILE_PIXELS_HIGH: number = ...

Tile pixels for high dpi tiles

Methods

  • Get the tile side (width and height) dimension based upon the scale

    Returns

    default tile length

    Parameters

    • scale: number

      scale

    Returns number

  • Get the tile scale based upon the tile dimensions

    Returns

    tile scale

    Parameters

    • tileWidth: number

      tile width

    • tileHeight: number

      tile height

    Returns number

  • Get the tile scale based upon the tile length (width or height)

    Returns

    tile scale

    Parameters

    • tileLength: number

      tile length (width or height)

    Returns number

Generated using TypeDoc