@JsType(isNative=true,
namespace="Cesium",
name="ArcGisMapServerImageryProvider")
public class ArcGisMapServerImageryProvider
extends Object
implements ImageryProvider
| Modifier and Type | Field and Description |
|---|---|
boolean |
enablePickFeatures
If true, ArcGisMapServerImageryProvider#pickFeatures will invoke the Identify service on the MapServer and return
the features included in the response.
|
| Constructor and Description |
|---|
ArcGisMapServerImageryProvider(ArcGisMapServerImageryProviderOptions options)
Provides tiled imagery hosted by an ArcGIS MapServer.
|
| Modifier and Type | Method and Description |
|---|---|
static ArcGisMapServerImageryProvider |
create(String url) |
Credit |
credit()
Gets the credit to display when this imagery provider is active.
|
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.
|
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) |
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()
The rectangle of the layer.
|
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()
The height of each tile in pixels.
|
int |
tileWidth()
The width of each tile in pixels.
|
TilingScheme |
tilingScheme()
The tiling scheme to use to divide the world into tiles.
|
String |
token()
The ArcGIS token used to authenticate with the ArcGIS MapServer service.
|
String |
url()
The URL of the ArcGIS MapServer service.
|
boolean |
usingPrecachedTiles()
Gets a value indicating whether this imagery provider is using pre-cached tiles from the ArcGIS MapServer.
|
@JsProperty public boolean enablePickFeatures
@JsConstructor public ArcGisMapServerImageryProvider(ArcGisMapServerImageryProviderOptions options)
Example:
ArcGisMapServerImageryProviderOptions options = new ArcGisMapServerImageryProviderOptions();
options.url = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer";
ImageryProvider esri = new ArcGisMapServerImageryProvider(options);
options - OptionsBingMapsImageryProvider,
GoogleEarthEnterpriseImageryProvider,
Cesium.createOpenStreetMapImageryProvider(),
SingleTileImageryProvider,
Cesium.createTileMapServiceImageryProvider(),
WebMapServiceImageryProvider,
WebMapTileServiceImageryProvider,
UrlTemplateImageryProvider,
ArcGIS Server REST API,
Cross-Origin Resource Sharing@JsProperty(name="credit") public Credit credit()
@JsProperty(name="errorEvent") public Event errorEvent()
@JsProperty(name="hasAlphaChannel") public boolean hasAlphaChannel()
@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()
Rectangle.MAX_VALUE()@JsProperty(name="tileDiscardPolicy") public TileDiscardPolicy tileDiscardPolicy()
@JsProperty(name="tileWidth") public int tileWidth()
@JsProperty(name="tileHeight") public int tileHeight()
@JsProperty(name="tilingScheme") public TilingScheme tilingScheme()
GeographicTilingScheme@JsProperty(name="token") public String token()
@JsProperty(name="url") public String url()
@JsProperty(name="usingPrecachedTiles") public boolean usingPrecachedTiles()
@JsOverlay public static ArcGisMapServerImageryProvider create(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.