Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Object with the following properties:
|
Example:
let imageryProvider = new EmbeddedTileServiceImageryProvider({
id: "BlueMarble",
path: "200406",
});
Members
Gets or sets the clock instance used for time dynamic imagery.
readonly credit : Credit
Gets the credit to display when this imagery provider is active.
readonly errorEvent : Event
Gets an event that is raised when the imagery provider encounters an asynchronous error.
Gets the format of the imagery tiles.
Gets a value indicating whether the images provided by this imagery provider include an alpha channel.
Gets the maximum zoom level.
Gets the minimum zoom level.
readonly proxy : Proxy
Gets the proxy used by this provider.
Gets a value indicating whether the provider is ready for use.
Gets a promise that resolves to true when the provider is ready for use.
readonly rectangle : Rectangle
Gets the rectangle, in radians, covered by this imagery provider.
readonly tileDiscardPolicy : TileDiscardPolicy
Gets the tile discard policy.
Gets the height of each tile, in pixels.
Gets the width of each tile, in pixels.
readonly tilingScheme : TilingScheme
Gets the tiling scheme used by this provider.
Gets or sets the time intervals used for time dynamic imagery.
Gets the URL of the imagery service.
Methods
getTileCredits(x, y, level) → Array.<Credit>
Gets the credits to be displayed when a given tile is displayed.
Name | Type | Description |
---|---|---|
x |
Number | The tile X coordinate. |
y |
Number | The tile Y coordinate. |
level |
Number | The tile level. |
Returns:
The credits to be displayed when the tile is displayed.
Picking features is not currently supported by this imagery provider, so this function always returns undefined.
Name | Type | Description |
---|---|---|
x |
Number | The tile X coordinate. |
y |
Number | The tile Y coordinate. |
level |
Number | The tile level. |
longitude |
Number | The longitude at which to pick features. |
latitude |
Number | The latitude at which to pick features. |
Returns:
Undefined since picking features is not supported.
requestImage(x, y, level, request) → Promise.<ImageryTypes>|undefined
Requests the image for a given tile.
Name | Type | Description |
---|---|---|
x |
Number | The tile X coordinate. |
y |
Number | The tile Y coordinate. |
level |
Number | The tile level. |
request |
Request | The request object. |
Returns:
A promise to an image or undefined if the image cannot be requested.