Class BingMapsProvider

Bing maps tile provider.

API Reference

Hierarchy

Constructors

Properties

apiKey: string

Server API access token.

bounds: number[] = []

Map bounds.

center: number[] = []

Map center point.

format: string = 'jpeg'

Map image tile format, the formats available are:

  • gif: Use GIF image format.
  • jpeg: Use JPEG image format. JPEG format is the default for Road, Aerial and AerialWithLabels imagery.
  • png: Use PNG image format. PNG is the default format for OrdnanceSurvey imagery.
mapSize: number = 512

Size of the map tiles.

maxZoom: number = 19

Maximum zoom level allowed by the provider.

meta: any = null

Metadata of the provider.

minZoom: number = 1

Minimum zoom level allowed by the provider.

name: string = ''

Name of the map provider

subdomain: string = 't1'

Tile server subdomain.

type: string

The type of the map used.

ADDRESS: string = 'https://dev.virtualearth.net'

Base address of the bing map provider.

AERIAL: string = 'a'

Display an aerial view of the map.

AERIAL_LABELS: string = 'h'

Display an aerial view of the map with labels.

OBLIQUE: string = 'o'

Use this value to display a bird's eye (oblique) view of the map.

OBLIQUE_LABELS: string = 'b'

Display a bird's eye (oblique) with labels view of the map.

ROAD: string = 'r'

Display a road view of the map.

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