@JsType(isNative=true,
namespace="Cesium",
name="BingMapsImageryProvider")
public class BingMapsImageryProvider
extends Object
implements ImageryProvider
| Modifier and Type | Field and Description |
|---|---|
double |
defaultGamma
The default ImageryLayer#gamma to use for imagery layers created for this provider.
|
| Constructor and Description |
|---|
BingMapsImageryProvider(BingMapsImageryProviderOptions options)
Provides tiled imagery using the Bing Maps Imagery REST API.
|
| Modifier and Type | Method and Description |
|---|---|
Credit |
credit()
Gets the credit to display when this imagery provider is active.
|
String |
culture()
The culture to use when requesting Bing Maps imagery.
|
Event |
errorEvent()
Gets an event that is raised when the imagery provider encounters an asynchronous error.
|
Credit[] |
getTileCredits(int x,
int y,
int level)
Gets the credits to be displayed when a given tile is displayed.
|
boolean |
hasAlphaChannel()
Gets a value indicating whether or not the images provided by this imagery provider include an alpha channel.
|
String |
key()
Gets the Bing Maps key.
|
String |
mapStyle()
Gets the type of Bing Maps imagery to load.
|
int |
maximumLevel()
Gets the maximum level-of-detail that can be requested.
|
int |
minimumLevel()
Gets the minimum level-of-detail that can be requested.
|
Promise<ImageryLayerFeatureInfo,Void> |
pickFeatures(int x,
int y,
int level,
double longitude,
double latitude)
Picking features is not currently supported by this imagery provider, so this function simply returns undefined.
|
static Object |
quadKeyToTileXY(String quadkey)
Converts a tile's quadkey used to request an image from a Bing Maps server into the (x, y, level) position.
|
boolean |
ready()
Gets a value indicating whether or not the provider is ready for use.
|
Promise<Boolean,Void> |
readyPromise()
Gets a promise that resolves to true when the provider is ready for use.
|
Rectangle |
rectangle()
Gets the rectangle, in radians, of the imagery provided by this instance.
|
Promise<JsImage,Void> |
requestImage(int x,
int y,
int level)
Requests the image for a given tile.
|
TileDiscardPolicy |
tileDiscardPolicy()
The policy that determines if a tile is invalid and should be discarded.
|
int |
tileHeight()
Gets the height of each tile, in pixels.
|
int |
tileWidth()
Gets the width of each tile, in pixels.
|
static String |
tileXYToQuadKey(int x,
int y,
int level)
Converts a tiles (x, y, level) position into a quadkey used to request an image from a Bing Maps server.
|
TilingScheme |
tilingScheme()
Gets the tiling scheme used by this provider.
|
String |
url()
Gets the name of the BingMaps server url hosting the imagery.
|
@JsProperty public double defaultGamma
@JsConstructor public BingMapsImageryProvider(BingMapsImageryProviderOptions options)
options - Options
Example:
BingMapsImageryProviderOptions options = new BingMapsImageryProviderOptions();
options.url = "https://dev.virtualearth.net";
options.key = "get-yours-at-https://www.bingmapsportal.com/";
options.mapStyle = BingMapsStyle.AERIAL();
ImageryProvider bing = new BingMapsImageryProvider(options);
@JsProperty(name="credit") public Credit credit()
@JsProperty(name="culture") public String culture()
@JsProperty(name="errorEvent") public Event errorEvent()
@JsProperty(name="hasAlphaChannel") public boolean hasAlphaChannel()
@JsProperty(name="key") public String key()
@JsProperty(name="mapStyle") public String mapStyle()
@JsProperty(name="maximumLevel") public int maximumLevel()
@JsProperty(name="minimumLevel") public int minimumLevel()
@JsProperty(name="ready") public boolean ready()
@JsProperty(name="readyPromise") public Promise<Boolean,Void> readyPromise()
@JsProperty(name="rectangle") public Rectangle rectangle()
@JsProperty(name="tileDiscardPolicy") public TileDiscardPolicy tileDiscardPolicy()
DiscardEmptyTileImagePolicy will be used, with the expectation that
the Bing Maps server will send a zero-length response for missing tiles. To ensure that no tiles are discarded,
construct and pass a NeverTileDiscardPolicy for this parameter.@JsProperty(name="tileHeight") public int tileHeight()
@JsProperty(name="tileWidth") public int tileWidth()
@JsProperty(name="tilingScheme") public TilingScheme tilingScheme()
@JsProperty(name="url") public String url()
@JsMethod public static Object quadKeyToTileXY(String quadkey)
quadkey - The tile's quad keytileXYToQuadKey(int, int, int)@JsMethod public static String tileXYToQuadKey(int x, int y, int level)
x - The tile's x coordinate.y - The tile's y coordinate.level - The tile's zoom level.quadKeyToTileXY(String)@JsMethod public Credit[] getTileCredits(int x, int y, int level)
x - The tile X coordinate.y - The tile Y coordinate.level - The tile level;@JsMethod public Promise<ImageryLayerFeatureInfo,Void> pickFeatures(int x, int y, int level, double longitude, double latitude)
x - The tile X coordinate.y - The tile Y coordinate.level - The tile level.longitude - The longitude at which to pick features.latitude - The latitude at which to pick features.@JsMethod public Promise<JsImage,Void> requestImage(int x, int y, int level)
x - The tile X coordinate.y - The tile Y coordinate.level - The tile level.Copyright © 2019. All rights reserved.