Module: ol/source/BingMaps

ol/source/BingMaps


Classes

BingMaps

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
cacheSize number <optional>
2048

Cache size.

hidpi boolean <optional>
false

If true hidpi tiles will be requested.

culture string <optional>
'en-us'

Culture code.

key string

Bing Maps API key. Get yours at http://www.bingmapsportal.com/.

imagerySet string

Type of imagery.

maxZoom number <optional>
21

Max zoom. Default is what's advertized by the BingMaps service.

reprojectionErrorThreshold number <optional>
0.5

Maximum allowed reprojection error (in pixels). Higher values can increase reprojection performance, but decrease precision.

tileLoadFunction module:ol/Tile~LoadFunction <optional>

Optional function to load a tile given a URL. The default is

function(imageTile, src) {
  imageTile.getImage().src = src;
};
wrapX boolean <optional>
true

Whether to wrap the world horizontally.

transition number <optional>

Duration of the opacity transition for rendering. To disable the opacity transition, pass transition: 0.