new Cesium.BingMapsImageryProvider(options)

To construct a BingMapsImageryProvider, call BingMapsImageryProvider.fromUrl. Do not call the constructor directly.
提供使用 Bing 映射图像的平面图像 .
Name Type Description
options BingMapsImageryProvider.ConstructorOptions 描述初始化选项的对象
Example:
const bing = await Cesium.BingMapsImageryProvider.fromUrl(
  "https://dev.virtualearth.net", {
    key: "get-yours-at-https://www.bingmapsportal.com/",
    mapStyle: Cesium.BingMapsStyle.AERIAL
});
See:

Members

static Cesium.BingMapsImageryProvider.logoUrl : string

获取或设置 URL 至Bing标志,在信用中显示.

readonly credit : Credit

当图像提供者活动时, 获得信用值以显示 。 通常,这是用来信用的 图像的来源.

readonly culture : string

请求 Bing Maps 图像时要使用的文化 。 没有 all cultures are supported. See http://msdn.microsoft.com/en-us/library/hh441729.aspx 用于了解所支持的文化.

readonly errorEvent : Event

获得一个在图像提供者遇到同步错误时上升的事件 。 通过签名 对事件,您将被通知错误,并有可能从中恢复。 活动听众 are passed an instance of TileProviderError.

readonly hasAlphaChannel : boolean

获得一个表示图像提供者是否提供的图像的值 包括一个α通道。 如果这个属性是虚假的, 一个 alpha 通道, 如果存在, 将会 将被忽略。 如果此属性属实, 任何没有 alpha 通道的图像都会被处理 好像他们的α是1.0 到处都是。 设置此属性为虚假减少内存使用 和纹理上传时间.

readonly key : string

获取 Bing 映射键 .

readonly mapLayer : string

readonly mapStyle : BingMapsStyle

获得 Bing 映射图像的类型来加载 .

readonly maximumLevel : number|undefined

获取可以请求的最多详细级别.

readonly minimumLevel : number

获取可以请求的最小详细级别.

readonly proxy : Proxy

获取此提供者使用的代理 .

readonly rectangle : Rectangle

用弧度表示这个例子提供的图像的矩形.

readonly tileDiscardPolicy : TileDiscardPolicy

获取瓷砖丢弃策略 。 如果未定义, 丢弃策略负责 用于通过它应当的DiscardImage函数过滤出“缺少”牌。 如果此函数 返回未定义,不过滤牌.

readonly tileHeight : number

获得每个瓦片的高度,以像素为单位.

readonly tileWidth : number

获得每个瓦片的宽度,以像素为单位.

readonly tilingScheme : TilingScheme

获得此提供者使用的平板方案 .

readonly url : string

获取图像托管的 BingMaps 服务器 URL 名称 .

Methods

static Cesium.BingMapsImageryProvider.fromUrl(url, options)Promise.<BingMapsImageryProvider>

Creates an ImageryProvider which provides tiled imagery using the Bing Maps Imagery REST API.
Name Type Description
url Resource | string Bing Maps服务器的url托管图像.
options BingMapsImageryProvider.ConstructorOptions 描述初始化选项的对象
Returns:
一个能解决创造的BingMapsImastery的诺言
Throws:
  • RuntimeError : metadata does not specify one resource in resourceSets
Example:
const bing = await Cesium.BingMapsImageryProvider.fromUrl(
  "https://dev.virtualearth.net", {
    key: "get-yours-at-https://www.bingmapsportal.com/",
    mapStyle: Cesium.BingMapsStyle.AERIAL
});

static Cesium.BingMapsImageryProvider.quadKeyToTileXY(quadkey)

将用于从 Bing Maps 服务器请求图像的平板四键转换为 (x,y,级别)位置.
Name Type Description
quadkey string 瓷砖的四键
See:

static Cesium.BingMapsImageryProvider.tileXYToQuadKey(x, y, level)

将一个牌位( x, y, 级别) 转换成四键, 用于请求图像 由 Bing Maps 服务器发送.
Name Type Description
x number 瓷砖的x坐标.
y number 瓷砖的y坐标.
level number 瓦片的缩放水平.
See:

getTileCredits(x, y, level)Array.<Credit>

获得在显示特定瓦片时显示的信用值.
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级;
Returns:
显示瓷砖时要显示的信用值 .

pickFeatures(x, y, level, longitude, latitude)undefined

Picking 特性目前不被此图像提供者支持, 因此此函数仅返回 undefined.
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
longitude number 选择特征的经度 .
latitude number 选择特征的纬度.
Returns:
不支持选择后未定义 .

requestImage(x, y, level, request)Promise.<ImageryTypes>|undefined

请求给定的瓦片的图像 .
Name Type Description
x number 瓷砖X坐标.
y number 瓦片Y坐标.
level number 瓦片级.
request Request optional 请求对象 。 仅供内部使用.
Returns:
承诺在图像可用时解决图像,或 如果服务器的主动请求过多, 未定义, 请求应在稍后重审 .

Type Definitions

Cesium.BingMapsImageryProvider.ConstructorOptions

BingMapsImagery 构建器的初始化选项
Properties:
Name Type Attributes Default Description
key string <optional>
您应用程序的 Bing 映射键, 可以是 created at https://www.bingmapsportal.com/.
tileProtocol string <optional>
The protocol to use when loading tiles, e.g. 'http' or 'https'. 默认情况下,瓦片会使用与页面相同的协议加载.
mapStyle BingMapsStyle <optional>
BingMapsStyle.AERIAL The type of Bing Maps imagery to load.
mapLayer string <optional>
Additional display layer options as defined on https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata#template-parameters
culture string <optional>
'' 请求炳映图图像时要使用的文化. 没有 all cultures are supported. See http://msdn.microsoft.com/en-us/library/hh441729.aspx 用于了解所支持的文化.
ellipsoid Ellipsoid <optional>
Ellipsoid.default The ellipsoid. If not specified, the default ellipsoid is used.
tileDiscardPolicy TileDiscardPolicy <optional>
确定是否为瓦片的策略 is invalid and should be discarded. By default, a DiscardEmptyTileImagePolicy 将使用,预计Bing Maps服务器将发送对缺少的瓦片的零长响应. 为确保此参数不丢弃任何瓦片, 构造和通过 NeverTileDiscardPolicy .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.