Module: ol/source/BingMaps

ol/source/BingMaps


Classes

BingMaps

Type Definitions

BingMapsImageryMetadataResponse{Object}

Properties:
Name Type Description
statusCode number

响应状态码

statusDescription string

响应状态描述

authenticationResultCode string

认证结果代码

resourceSets Array<ResourceSet>

资源集数组

CoverageArea{Object}

Properties:
Name Type Description
zoomMin number

最小缩放级别

zoomMax number

最大缩放级别

bbox Array.<number>

覆盖范围边界框

ImageryProvider{Object}

Properties:
Name Type Description
coverageAreas Array<CoverageArea>

覆盖区域

attribution string | undefined

归属信息

Options{Object}

Properties:
Name Type Description
cacheSize number | undefined

已弃用。 请改用图层上的 cacheSize 选项。

hidpi boolean
(defaults to false)

如果为 true,将请求 hidpi 瓦片。

culture string
(defaults to 'en-us')

区域文化代码。

key string

Bing Maps API 密钥。请在 https://www.bingmapsportal.com/ 获取。

imagerySet string

图像类型。

interpolate boolean
(defaults to true)

重采样时是否使用插值。默认情况下, 重采样时使用线性插值。设置为 false 可使用 the nearest neighbor instead.

maxZoom number
(defaults to 21)

最大缩放。 Default is what's advertized by the BingMaps service.

reprojectionErrorThreshold number
(defaults to 0.5)

允许的最大重投影误差(以像素为单位)。 值越高可以提高重投影性能,但会降低精度。

tileLoad函数 Load函数 | undefined

给定 URL 加载瓦片的可选函数。默认为

function(imageTile, src) {
  imageTile.getImage().src = src;
};
wrapX boolean
(defaults to true)

是否水平环绕世界。

transition number | undefined

渲染的不透明度过渡持续时间。要禁用不透明度过渡,请传递 transition: 0

zDirection number | NearestDirection函数
(defaults to 0)

选择在整数缩放级别之间使用更高还是更低缩放级别的瓦片。参见 getZForResolution

placeholderTiles boolean | undefined

当缩放超过区域提供的最大级别时是否显示 BingMaps 占位瓦片。当 false 时,超过最大缩放级别的请求将不返回瓦片。当 true 时,将返回占位瓦片。未设置时,将采用影像集的默认行为,BingMaps 中每个影像集的行为各不相同。

url string
(defaults to 'https://dev.virtualearth.net/REST/v1/Imagery/Metadata/')

Bing Map 元数据 API URL。

Resource{Object}

Properties:
Name Type Description
imageHeight number

图像高度

imageWidth number

图像宽度

zoomMin number

最小缩放级别

zoomMax number

最大缩放级别

imageUrl string

图像 URL

imageUrlSubdomains Array.<string>

用于轮换的图像 URL 子域名

imageryProviders Array<ImageryProvider> | undefined

ImageryProviders 数组

ResourceSet{Object}

Properties:
Name Type Description
resources Array<Resource>

资源。