Class MapTilerProvider

Map tiler provider API.

The map tiler server is based on open map tiles.

API Reference

Hierarchy

Constructors

Properties

apiKey: string

Server API access token.

bounds: number[] = []

Map bounds.

category: string

Tile category (e.g. maps, tiles),

center: number[] = []

Map center point.

format: string

Map image tile file format (e.g png, jpg)

Format can be for image or for geometry fetched from the system (e.g quantized-mesh-1.0)

maxZoom: number = 20

Maximum tile level.

minZoom: number = 0

Minimum tile level.

name: string = ''

Name of the map provider

resolution: number
style: string

Map tile type, some of the vectorial styles available.

Can be used for rasterized vectorial maps (e.g, basic, bright, darkmatter, hybrid, positron, streets, topo, voyager).

Cam be used for data tiles (e.g hillshades, terrain-rgb, satellite).

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