@JsType(isNative=true, namespace="Cesium", name="IonImageryProvider") public class IonImageryProvider extends Object implements ImageryProvider
Modifier and Type | Field and Description |
---|---|
float |
defaultAlpha
The default alpha blending value of this provider, with 0.0 representing fully
transparent and 1.0 representing fully opaque.
|
float |
defaultBrightness
The default brightness of this provider. 1.0 uses the unmodified imagery color.
|
float |
defaultContrast
The default contrast of this provider. 1.0 uses the unmodified imagery color.
|
float |
defaultGamma
The default gamma correction to apply to this provider. 1.0 uses the unmodified imagery color.
|
float |
defaultHue
The default hue of this provider in radians. 0.0 uses the unmodified imagery color.
|
Number |
defaultMagnificationFilter
The default texture magnification filter to apply to this provider.
|
Number |
defaultMinificationFilter
The default texture minification filter to apply to this provider.
|
float |
defaultSaturation
The default saturation of this provider. 1.0 uses the unmodified imagery color.
|
Constructor and Description |
---|
IonImageryProvider(IonImageryProviderOptions options)
Provides tiled imagery using the Cesium ion REST API.
|
Modifier and Type | Method and Description |
---|---|
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)
Asynchronously determines what features, if any, are located at a given longitude and latitude within a tile.
|
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 the instance.
|
Promise<com.google.gwt.canvas.client.Canvas,Void> |
requestCanvas(int x,
int y,
int level,
Request request)
Requests the image for a given tile.
|
Promise<JsImage,Void> |
requestImage(int x,
int y,
int level,
Request request)
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 the provider.
|
@JsProperty public float defaultAlpha
@JsProperty public float defaultBrightness
@JsProperty public float defaultContrast
public float defaultGamma
@JsProperty public float defaultHue
@JsProperty public Number defaultMagnificationFilter
Default: undefined
@JsProperty public Number defaultMinificationFilter
Default: undefined
@JsProperty public float defaultSaturation
@JsConstructor public IonImageryProvider(IonImageryProviderOptions options)
options
- IonImageryProviderOptions
object.@JsProperty(name="credit") public Credit credit()
@JsProperty(name="errorEvent") public Event errorEvent()
@JsProperty(name="hasAlphaChannel") public boolean hasAlphaChannel()
@JsProperty(name="maximumLevel") public int maximumLevel()
ready()
returns true.@JsProperty(name="minimumLevel") public int minimumLevel()
ready()
returns true. Generally, a minimum level should only be used when the
rectangle of the imagery is small enough that the number of tiles at the minimum level is small. An imagery
provider with more than a few tiles at the minimum level will lead to rendering problems.@JsProperty(name="ready") public boolean ready()
@JsProperty(name="readyPromise") public Promise<Boolean,Void> readyPromise()
@JsProperty(name="rectangle") public Rectangle rectangle()
ready()
returns true.@JsProperty(name="tileDiscardPolicy") public TileDiscardPolicy tileDiscardPolicy()
ready()
returns true.@JsProperty(name="tileHeight") public int tileHeight()
ready()
returns true.@JsProperty(name="tileWidth") public int tileWidth()
ready()
returns true.@JsProperty(name="tilingScheme") public TilingScheme tilingScheme()
ready()
returns true.@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)
ready()
returns true. This function is optional,
so it may not exist on all ImageryProviders.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, Request request)
ready()
returns true.x
- The tile X coordinate.y
- The tile Y coordinate.level
- The tile level.request
- The request object. Intended for internal use only.@JsMethod public Promise<com.google.gwt.canvas.client.Canvas,Void> requestCanvas(int x, int y, int level, Request request)
ready()
returns true.x
- The tile X coordinate.y
- The tile Y coordinate.level
- The tile level.request
- The request object. Intended for internal use only.Copyright © 2019. All rights reserved.