Class DebugProvider

Debug provider can be used to debug the levels of the map three based on the zoom level they change between green and red.

Hierarchy

Constructors

Properties

bounds: number[] = []

Map bounds.

center: number[] = []

Map center point.

maxZoom: number = 20

Maximum tile level.

minZoom: number = 0

Minimum tile level.

name: string = ''

Name of the map provider

resolution: number = 256

Resolution in px of each tile.

Methods

  • Get a tile for the x, y, zoom based on the provider configuration.

    The tile should be returned as a image object, compatible with canvas context 2D drawImage() and with webgl texImage2D() method.

    Returns

    Promise with the image obtained for the tile ready to use.

    Parameters

    • zoom: number

      Zoom level.

    • x: number

      Tile x.

    • y: number

      Tile y.

    Returns Promise<any>

Generated using TypeDoc