public class ArcGISImageServiceLayer extends DynamicMapServiceLayer
Modifier and Type | Class and Description |
---|---|
static class |
ArcGISImageServiceLayer.Options
Constructor options for the ArcGISImageServiceLayer
|
Modifier and Type | Method and Description |
---|---|
void |
addMapImageExportHandler(MapImageExportHandler handler)
Fires when the map export is completed.
|
static ArcGISImageServiceLayer |
create(java.lang.String uri)
Creates a new ArcGISImageServiceLayer object.
|
static ArcGISImageServiceLayer |
create(java.lang.String uri,
ArcGISImageServiceLayer.Options options)
Creates a new ArcGISImageServiceLayer object.
|
void |
exportMapImage()
Exports a map using values as specified by ImageServiceParameters.
|
void |
exportMapImage(ImageServiceParameters params)
Exports a map using values as specified by ImageServiceParameters.
|
void |
exportMapImage(ImageServiceParameters params,
MapImageExportHandler handler)
Exports a map using values as specified by ImageServiceParameters.
|
void |
exportMapImage(MapImageExportHandler handler)
Exports a map using values as specified by ImageServiceParameters.
|
double |
getBandCount()
Number of bands in ArcGISImageServiceLayer.
|
com.google.gwt.core.client.JsArrayNumber |
getBandIds()
Array of current band selections.
|
com.google.gwt.core.client.JsArray<Band> |
getBands()
The raster bands that the raster dataset is composed of and their
statistics.
|
double |
getCompressionQuality()
Current compression quality value.
|
java.lang.String |
getCopyrightText()
Copyright string as defined by the image service.
|
java.lang.String |
getDescription()
Copyright string as defined by the image service.
|
java.lang.String |
getFormat()
The output image type.
|
java.lang.String |
getInterpolation()
Current interpolation method.
|
int |
getMaxImageHeight()
The maximum image height , in pixels, that the map service will export.
|
int |
getMaxImageWidth()
The maximum image width, in pixels, that the map service will export.
|
int |
getMaxRecordCount()
The maximum number of results that can be returned from query, identify and find operations.
|
MosaicRule |
getMosaicRule()
Specifies the mosaic rule when defining how individual images should be mosaicked.
|
float |
getPixelSizeX()
Size of pixel in X direction.
|
float |
getPixelSizeY()
Size of pixel in Y direction.
|
java.lang.String |
getPixelType()
The pixel type of the image service.
|
RasterFunction |
getRenderingRule()
Specifies the rendering rule for how the requested image should be rendered.
|
TimeInfo |
getTimeInfo()
Temporal information for the layer, such as time extent.
|
double |
getVersion()
The version of ArcGIS Server the image service is published to, e.g.
|
boolean |
isDisabledClientCaching()
When true, images are always requested from the server and the browser's cache is
ignored.
|
void |
setBandIs(int[] bandIds)
Sets the R,G,B of the exported image to the appropriate ImageService Band ID.
|
void |
setBandIs(int[] bandIds,
boolean doNotRefresh)
Sets the R,G,B of the exported image to the appropriate ImageService Band ID.
|
void |
setCompressionQuality(float quality)
Sets the compression quality of the exported image.
|
void |
setCompressionQuality(float quality,
boolean doNotRefresh)
Sets the compression quality of the exported image.
|
void |
setDisableClientCaching(boolean disable)
Sets whether images are always requested from the server and the browser's cache is ignored.
|
void |
setImageFormat(java.lang.String imageFormat)
Set the image format.
|
void |
setImageFormat(java.lang.String imageFormat,
boolean doNotRefresh)
Set the image format.
|
void |
setInterpolation(java.lang.String interpolation)
Sets the interpolation method.
|
void |
setInterpolation(java.lang.String interpolation,
boolean doNotRefresh)
Sets the interpolation method.
|
void |
setMosaicRule(MosaicRule mosaicRule)
Sets the mosaic rule of the layer to the specified value.
|
void |
setMosaicRule(MosaicRule mosaicRule,
boolean doNotRefresh)
Sets the mosaic rule of the layer to the specified value.
|
void |
setRenderingRule(RasterFunction renderingRule)
Sets the rendering rule of the layer to the given value.
|
void |
setRenderingRule(RasterFunction renderingRule,
boolean doNotRefresh)
Sets the rendering rule of the layer to the given value.
|
void |
setUseMapTime(boolean update)
Determine if the layer will update its content based on the map's current time extent.
|
getFullExtent, getImageUrl, getInitialExtent, getSpatialReference, refresh
addErrorHandler, addLoadHandler, addOpacityChangeHandler, addUpdateEndHandler, addUpdateHandler, addUpdateStartHandler, addVisibilityChangeHandler, getCredential, getId, getOpacity, getUrl, hide, isloaded, isVisible, setOpacity, setVisibility, show
public static ArcGISImageServiceLayer create(java.lang.String uri, ArcGISImageServiceLayer.Options options)
uri
- - URL to the ArcGIS Server REST resource that represents a map service.options
- - Optional parameters.public static ArcGISImageServiceLayer create(java.lang.String uri)
uri
- - URL to the ArcGIS Server REST resource that represents a map service.public final double getBandCount()
public final com.google.gwt.core.client.JsArrayNumber getBandIds()
public final com.google.gwt.core.client.JsArray<Band> getBands()
public final double getCompressionQuality()
public final java.lang.String getCopyrightText()
public final java.lang.String getDescription()
public final boolean isDisabledClientCaching()
public final java.lang.String getFormat()
public final java.lang.String getInterpolation()
public final int getMaxImageHeight()
public final int getMaxImageWidth()
public final int getMaxRecordCount()
public final MosaicRule getMosaicRule()
public final float getPixelSizeX()
public final float getPixelSizeY()
public final java.lang.String getPixelType()
public final RasterFunction getRenderingRule()
public final TimeInfo getTimeInfo()
public final double getVersion()
public final void exportMapImage()
public final void exportMapImage(MapImageExportHandler handler)
handler
- - The function to call when the method has completed. The arguments in the function are
the same as the onMapImageExport event.public final void exportMapImage(ImageServiceParameters params)
params
- - Input parameters assigned before exporting the map image.public final void exportMapImage(ImageServiceParameters params, MapImageExportHandler handler)
params
- - Input parameters assigned before exporting the map image.handler
- - The function to call when the method has completed. The arguments in the function are
the same as the onMapImageExport event.public final void setBandIs(int[] bandIds)
bandIds
- - Array of band IDs to use in the exported image.public final void setBandIs(int[] bandIds, boolean doNotRefresh)
bandIds
- - Array of band IDs to use in the exported image.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setCompressionQuality(float quality)
quality
- - Sets the compression quality of the exported image. Only valid with JPG image format.public final void setCompressionQuality(float quality, boolean doNotRefresh)
quality
- - Sets the compression quality of the exported image. Only valid with JPG image format.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setDisableClientCaching(boolean disable)
disable
- - When true, browser client side caching is disabled.public final void setImageFormat(java.lang.String imageFormat)
imageFormat
- - Valid values are png | png8 | png24 | jpg | pdf | bmp | gif | svg.public final void setImageFormat(java.lang.String imageFormat, boolean doNotRefresh)
imageFormat
- - Valid values are png | png8 | png24 | jpg | pdf | bmp | gif | svg.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setInterpolation(java.lang.String interpolation)
interpolation
- - Interpolation value defined in ImageServiceParameters Constants Table.public final void setInterpolation(java.lang.String interpolation, boolean doNotRefresh)
interpolation
- - Interpolation value defined in ImageServiceParameters Constants Table.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setMosaicRule(MosaicRule mosaicRule)
mosaicRule
- - The mosaic rule.public final void setMosaicRule(MosaicRule mosaicRule, boolean doNotRefresh)
mosaicRule
- - The mosaic rule.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setRenderingRule(RasterFunction renderingRule)
renderingRule
- - The new rendering rule.public final void setRenderingRule(RasterFunction renderingRule, boolean doNotRefresh)
renderingRule
- - The new rendering rule.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setUseMapTime(boolean update)
update
- - When false the layer will not update its content based on the map's time extent. Default value is true.public final void addMapImageExportHandler(MapImageExportHandler handler)
handler
- - Contains the properties of a dynamically generated map image.