Bing Maps image service provider.
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Objects have the following properties:
|
- ArcGisMapServerImageryProvider
- GoogleEarthEnterpriseMapsProvider
- createOpenStreetMapImageryProvider
- SingleTileImageryProvider
- createTileMapServiceImageryProvider
- WebMapServiceImageryProvider
- WebMapTileServiceImageryProvider
- UrlTemplateImageryProvider
- Bing Maps REST Services
- Cross-Origin Resource Sharing
Example:
var bing = new SuperMap3D.BingMapsImageryProvider({
url : 'https://dev.virtualearth.net',
key : 'get-yours-at-https://www.bingmapsportal.com/',
mapStyle : SuperMap3D.BingMapsStyle.AERIAL
});
See:
Members
-
readonlycredit : Credit
-
Gets description information for a service while the service is active.
-
Get the language used when requesting Bing Maps service, see http://msdn.microsoft.com/en-us/library/hh441729.aspx for details.
-
Imagery layers are created using the default @link ImageryLayer#gamma. Changing the @link ImageryLayer#gamma value after creating @link ImageryLayer has no effect, you can set the @link ImageryLayer#gamma property of the image layer.
-
Default Value:
1.0
-
readonlyerrorEvent : Event
-
Gets the event raised when an asynchronous error occurs in the image service. Event listeners are passed 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 present) 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 service key.
-
readonlymapStyle : BingMapsStyle
-
Get the service type.
-
Gets the maximum level of detail (LOD) that can be requested. This property cannot be called before BingMapsImageryProvider#ready returns true.
-
Gets 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.
-
Gets a value indicating whether the service is available for use.
-
Get a promise that resolves to true when the service is ready for use.
-
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 discarding strategy. If undefined, the discard strategy filters out nonexistent tiles via the shouldDiscardImage function. If the function returns undefined, no tiles are filtered out. This function is called when
BingMapsImageryProvider#ready
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
-
Requests an image from the Bing Maps server, converting a tile's quad key to a (x, y, level) position.
Name Type Description quadkey
String The tile's quad key. - Bing Maps Tile System
- BingMapsImageryProvider#tileXYToQuadKey
See:
-
Converts the (x, y, level) position of a tile into a quad key to request images from the Bing Maps server.
Name Type Description x
Number The x coordinate of the tile. y
Number The y coordinate of the tile. level
Number 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 x
Number The x coordinate of the tile. y
Number The y coordinate of the tile. level
Number The level of the tile. Returns:
Subtitle information displayed by the tile.Throws:
-
DeveloperError :
getTileCredits
must not be called until the image service is available.
-
-
pickFeatures(x, y, level, longitude, latitude) → Promise.<Array.<ImageryLayerFeatureInfo>>|undefined
-
Pick feature objects. If the imagery provider does not currently support picking, the function will return undefined. ClippingType.js
Name Type Description x
Number The x coordinate of the tile. y
Number The y coordinate of the tile. level
Number The level of the tile. longitude
Number Pick the longitude of the feature object. latitude
Number The latitude of the picked feature object. Returns:
A promise for picking features is formed when the asynchronous picking operation completes. The value of the promise is an array ofImageryLayerFeatureInfo
instances. If no feature object is found at the specified location, the array will be empty. If the pick operation is not supported, the operand may be undefined. -
Requests an image for the specified tile.
BingMapsImageryProvider#ready
This function is called when true is returned.Name Type Description x
Number The x coordinate of the tile. y
Number The y coordinate of the tile. level
Number The level of the tile. request
Request optional request object. For internal use only. Returns:
A promise to form the image when the image is available, or undefined (if the server receives too many requests, the request is prompted to retry later). The parsed image can be an image or a Canvas DOM object.Throws:
-
DeveloperError :
requestImage
Do not call until image service is available.
-