Class: BingMaps
This documentation is for OpenLayers v
5.1.3. The
latest is v
.
new BingMaps(options)
source/BingMaps.js, line 53
Name |
Type |
Description |
options |
Bing Maps options.
Name |
Type |
Default |
Description |
cacheSize |
number
|
2048
|
Cache size. |
hidpi |
boolean
|
false
|
If true hidpi tiles will be requested. |
culture |
string
|
'en-us'
|
Culture code. |
key |
string
|
|
Bing Maps API key. Get yours at http://www.bingmapsportal.com/. |
imagerySet |
string
|
|
Type of imagery. |
maxZoom |
number
|
21
|
Max zoom. Default is what's advertized by the BingMaps service. |
reprojectionErrorThreshold |
number
|
0.5
|
Maximum allowed reprojection error (in pixels).
Higher values can increase reprojection performance, but decrease precision. |
tileLoadFunction |
module:ol/Tile~LoadFunction
|
|
Optional function to load a tile given a URL. The default is
function(imageTile, src) {
imageTile.getImage().src = src;
};
|
wrapX |
boolean
|
true
|
Whether to wrap the world horizontally. |
transition |
number
|
|
Duration of the opacity transition for rendering.
To disable the opacity transition, pass transition: 0 . |
|
Methods
-
getApiKey(){string}
source/BingMaps.js, line 121
-
Get the api key used for this source.
Returns:
The api key.
-
getImagerySet(){string}
source/BingMaps.js, line 131
-
Get the imagery set associated with this source.
Returns:
The imagery set.