@JsType(isNative=true, namespace="Cesium", name="WebMapServiceImageryProvider") public class WebMapServiceImageryProvider extends Object implements ImageryProvider
Modifier and Type | Field and Description |
---|---|
Clock |
clock
Gets or sets a clock that is used to get keep the time used for time dynamic parameters.
|
TimeIntervalCollection |
times
Gets or sets a time interval collection that is used to get time dynamic parameters.
|
Constructor and Description |
---|
WebMapServiceImageryProvider(WebMapServiceImageryProviderOptions options)
Provides tiled imagery hosted by a Web Map Service (WMS) server.
|
Modifier and Type | Method and Description |
---|---|
Credit |
credit()
Gets the credit to display when this imagery provider is active.
|
static WebMapServiceParameters |
DefaultParameters()
The default parameters to include in the WMS URL to obtain images.
|
Event |
errorEvent()
Gets an event that is raised when the imagery provider encounters an asynchronous error.
|
static GetFeatureInfoParameters |
GetFeatureInfoDefaultParameters()
The default parameters to include in the WMS URL to get feature information.
|
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 |
layers()
Gets the names of the WMS layers, separated by commas.
|
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.
|
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()
Gets the tile discard policy.
|
int |
tileHeight()
Gets the height of each tile, in pixels.
|
int |
tileWidth()
Gets the width of each tile, in pixels.
|
TilingScheme |
tilingScheme()
Gets the tiling scheme used by this provider.
|
String |
url()
Gets the URL of the Google Earth MapServer.
|
@JsProperty public Clock clock
@JsProperty public TimeIntervalCollection times
@JsConstructor public WebMapServiceImageryProvider(WebMapServiceImageryProviderOptions options)
options
- Options@JsProperty(name="DefaultParameters") public static WebMapServiceParameters DefaultParameters()
@JsProperty(name="GetFeatureInfoDefaultParameters") public static GetFeatureInfoParameters GetFeatureInfoDefaultParameters()
@JsProperty(name="credit") public Credit credit()
@JsProperty(name="errorEvent") public Event errorEvent()
@JsProperty(name="hasAlphaChannel") public boolean hasAlphaChannel()
@JsProperty(name="layers") public String layers()
@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()
@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 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.