BingMaps imagery service provider.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The object has the following properties:
|
- ArcGisMapServerImageryProvider
- GoogleEarthEnterpriseMapsProvider
- createOpenStreetMapImageryProvider
- SingleTileImageryProvider
- createTileMapServiceImageryProvider
- WebMapServiceImageryProvider
- WebMapTileServiceImageryProvider
- UrlTemplateImageryProvider
- Bing Maps REST Services
- Cross-Origin Resource Sharing
Example:
var bing = new Cesium.BingMapsImageryProvider({
url : 'https://dev.virtualearth.net',
key : 'get-yours-at-https://www.bingmapsportal.com/',
mapStyle : Cesium.BingMapsStyle.AERIAL
});
See:
Members
-
readonlycredit : Credit
-
Obtain service description information when the service is active.
-
To obtain the language used when requesting BingMaps service, please refer to http://msdn.microsoft.com/en-us/library/hh441729.aspx for details.
-
Use the default @link ImageryLayer#gamma to create an image layer. After creating @link ImageryLayer, changing the value of @link ImageryLayer#gamma is invalid. You can set the @link ImageryLayer#gamma attribute of the image layer.
-
Default Value:
1.0 -
readonlyerrorEvent : Event
-
Get the event raised when an asynchronous error occurs in the image service. The event listener passes an instance of TileProviderError.
-
Gets a value indicating whether the image provided by the image provider contains an alpha channel. If this property is false, the alpha channel (if it exists) will be ignored. If this property is true, any image without an alpha channel is considered to have an alpha value of 1. Setting this value to false will reduce memory usage and texture loading time.
-
Get the key of the service.
-
readonlymapStyle : BingMapsStyle
-
Get the service type.
-
Get the maximum level of detail (LOD) that can be requested. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
Get the smallest level of detail (LOD) that can be requested. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
Get the proxy used by the service provider.
-
Get a value indicating whether the service is available for use.
-
Get a promise that resolves to true when the service is available.
-
readonlyrectangle : Rectangle
-
Get the image rectangle and radian parameters provided by the instance. This function is called when @link BingMapsImageryProvider#ready returns true.
-
readonlytileDiscardPolicy : TileDiscardPolicy
-
Get the tile discard strategy. If not defined, the discard strategy filters out non-existent tiles through the shouldDiscardImage function. If the function returns undefined, no tiles are filtered out.
BingMapsImageryProvider#readyCall this function when it returns true. -
Get the height of each tile, in pixels. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
Get the width of each tile, in pixels. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
readonlytilingScheme : TilingScheme
-
Get the segmentation strategy used by the service provider. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
Get the url of the service.
Methods
-
Request an image from the Bing Maps server and convert the four-pronged key of a tile to (x, y, level) position.
Name Type Description quadkeyString Four-pronged key for tiles. - Bing Maps Tile System
- BingMapsImageryProvider#tileXYToQuadKey
See:
-
Convert the (x, y, level) position of a tile into a four-prong key, and request an image from the Bing Maps server.
Name Type Description xNumber The x coordinate of the tile. yNumber The y coordinate of the tile. levelNumber The zoom level of the tile. - Bing Maps Tile System
- BingMapsImageryProvider#quadKeyToTileXY
See:
-
getTileCredits(x, y, level) → Array.<Credit>
-
Get the subtitle information displayed by the tile.
Name Type Description xNumber The x coordinate of the tile. yNumber The y coordinate of the tile. levelNumber The level of the tile. Returns:
The subtitle information displayed by the tile.Throws:
-
DeveloperError :
getTileCreditsIt is prohibited to call before the image service is provided.
-
-
pickFeatures(x, y, level, longitude, latitude) → Promise.<Array.<ImageryLayerFeatureInfo>>|undefined
-
Pick feature objects. If the image provider does not currently support the pickup function, the function will return undefined. ClippingType.js
Name Type Description xNumber The x coordinate of the tile. yNumber The y coordinate of the tile. levelNumber The level of the tile. longitudeNumber Pick the longitude of the feature object. latitudeNumber Pick the latitude of the feature object. Returns:
When the asynchronous picking operation is completed, a promise of picking features will be formed. The value of promise isImageryLayerFeatureInfoAn array of instances. If no feature object is found at the specified position, the array will be empty. If the picking operation is not supported, the operation object may be undefined. -
Request the image of the specified tile. This function is called when
BingMapsImageryProvider#readyreturns true.Name Type Description xNumber The x coordinate of the tile. yNumber The y coordinate of the tile. levelNumber The level of the tile. requestRequest optional Request object. For internal use only. Returns:
The promise that forms the image when the image is available, or is undefined (if the server receives too many requests, the request is prompted to try again later). The parsed image can be an image or a Canvas DOM object.Throws:
-
DeveloperError :
requestImageIt is prohibited to call before the image service is provided.
-
