class QTree utilizes quad-tree structure to get the type of the tile at the given coord

Hierarchy

  • QTree

Constructors

Properties

Accessors

Methods

Constructors

  • Class constructor for QTree.

    Parameters

    • input: RequestInfo

      The request info (e.g. URI) to load the QTree.

    • Optional requestInit: RequestInit

      The request initialization for loading the QTree. Includes properties such as method, headers, body, etc.

    Returns QTree

Properties

_qtree: Tree = {}
_qtreedepth: number = 0
_ready: Promise<void>

Accessors

  • get ready(): Promise<void>
  • A getter that returns a Promise that resolves when the QTree is ready to be used.

    Returns

    A Promise that resolves when the QTree is ready to be used.

    Returns Promise<void>

Methods

  • Loads the QTree from the specified input and request initialization.

    Async

    Returns

    A Promise that resolves when the QTree is loaded.

    Throws

    If the QTree fails to load.

    Parameters

    • input: RequestInfo

      The request info (e.g. URI) to load the QTree.

    • Optional requestInit: RequestInit

      The request initialization for loading the QTree. Includes properties such as method, headers, body, etc.

    Returns Promise<void>

  • Returns the type of the tile at the given coordinates.

    Returns

    The type of the tile at the given coordinates.

    Parameters

    • coord: XYZ

      The coordinates of the tile to check.

    Returns TileType

Generated using TypeDoc