public class ImageParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
ImageParameters.LayerOption |
Modifier and Type | Method and Description |
---|---|
void |
addLayerTimeOptions(int index,
LayerTimeOptions option) |
void |
clearLayerTimeOptions()
Clear the layerTImeOptions array.
|
static ImageParameters |
create()
Creates a new ImageParameters object.
|
Extent |
getBbox()
Extent of map to be exported.
|
int |
getDpi()
Dots per inch setting for an ArcGISDynamicMapServiceLayer.
|
java.lang.String |
getFormat()
Map image format.
|
int |
getHeight()
Requested image height in pixels.
|
SpatialReference |
getImageSpatialReference()
Spatial reference of exported map.
|
com.google.gwt.core.client.JsArrayString |
getLayerDefinitions()
Array of layer definition expressions that allows you to filter the features of individual layers in the
exported map image.
|
com.google.gwt.core.client.JsArrayInteger |
getLayerIds()
A list of layer ID's, that represent which layers to include in the exported map.
|
ImageParameters.LayerOption |
getLayerOption()
The option for displaying or hiding the layer.
|
com.google.gwt.core.client.JsArray<LayerTimeOptions> |
getLayerTimeOptions()
Array of LayerTimeOptions objects that allow you to override how a layer is exported in reference to
the map's time extent.
|
TimeExtent |
getTimeExtent()
The time extent for the map image.
|
int |
getWidth()
Requested image width in pixels.
|
boolean |
isTransparent()
Whether or not background of dynamic image is transparent.
|
void |
setBbox(Extent bbox) |
void |
setDpi(int dpi) |
void |
setFormat(java.lang.String format) |
void |
setHeight(int height) |
void |
setImageSpatialReference(SpatialReference spatialReference) |
void |
setLayerDefinition(int index,
java.lang.String definition) |
void |
setLayerIds(int[] ids)
Set the layerIds parameter.
|
void |
setLayerOption(ImageParameters.LayerOption layerOption) |
void |
setTimeExtent(TimeExtent timeExtent) |
void |
setTransparent(boolean transparent) |
void |
setWidth(int width) |
public static final ImageParameters create()
public final Extent getBbox()
public final void setBbox(Extent bbox)
bbox
- - Extent of map to be exported.public final int getDpi()
public final void setDpi(int dpi)
dpi
- - Dots per inch setting for an ArcGISDynamicMapServiceLayer.public final java.lang.String getFormat()
public final void setFormat(java.lang.String format)
format
- - Map image format.
Known values: png | png8 | png24 | jpg | pdf | bmp | gif | svg
Default value: png8public final int getHeight()
public final void setHeight(int height)
height
- - Requested image height in pixels.public final SpatialReference getImageSpatialReference()
public final void setImageSpatialReference(SpatialReference spatialReference)
spatialReference
- - Spatial reference of exported map.public final com.google.gwt.core.client.JsArrayString getLayerDefinitions()
public final void setLayerDefinition(int index, java.lang.String definition)
index
- definition
- public final com.google.gwt.core.client.JsArrayInteger getLayerIds()
public final void setLayerIds(int[] ids)
ids
- - A list of layer ID's, that represent which layers to include in the exported map.
Use in combination with layerOption to specify how layer visiblity is handled.public final void setLayerOption(ImageParameters.LayerOption layerOption)
layerOption
- - The option for displaying or hiding the layer.public final ImageParameters.LayerOption getLayerOption()
public final com.google.gwt.core.client.JsArray<LayerTimeOptions> getLayerTimeOptions()
public final void addLayerTimeOptions(int index, LayerTimeOptions option)
index
- option
- - Array of LayerTimeOptions objects that allow you to override how a layer is exported in reference
to the map's time extent. There is one object per sub-layer.public final void clearLayerTimeOptions()
public final TimeExtent getTimeExtent()
public final void setTimeExtent(TimeExtent timeExtent)
timeExtent
- - The time extent for the map image.public final boolean isTransparent()
public final void setTransparent(boolean transparent)
transparent
- - Whether or not background of dynamic image is transparent.public final int getWidth()
public final void setWidth(int width)
width
- - Requested image width in pixels.