Class OpenMapTilesProvider

Open tile map server tile provider.

API Reference

Hierarchy

Constructors

Properties

address: string

Map server address.

By default the open OSM tile server is used.

bounds: number[] = []

Map bounds.

center: number[] = []

Map center point.

format: string

Map image tile format.

maxZoom: number = 20

Maximum tile level.

minZoom: number = 0

Minimum tile level.

name: string = ''

Name of the map provider

theme: string

Map tile theme, some of the styles available.

  • dark-matter
  • klokantech-basic
  • osm-bright
  • positron

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