public class ArcGISDynamicMapServiceLayer extends DynamicMapServiceLayer
Modifier and Type | Class and Description |
---|---|
static class |
ArcGISDynamicMapServiceLayer.ImageFormat |
static class |
ArcGISDynamicMapServiceLayer.LayerDefinitions
Example:
layerDefinitions.setLayerDefinition(0, "POPULATION > 5000000");
layerDefinitions.setLayerDefinition(0, "AREA > 100000");
dynamicMapServiceLayer.setLayerDefinitions(layerDefinitions);
Note that the array indices 0 and 5 are valid layer IDs, and POPULATION and AREA are valid attribute fields
associated with the respective layers. |
static class |
ArcGISDynamicMapServiceLayer.Options
Layer Options
|
Modifier and Type | Method and Description |
---|---|
void |
addGDBChangeHandler(GdbVersionChangeHandler handler)
Set gdb version change handler.
|
void |
addMapImageExportHandler(MapImageExportHandler handler)
Fires when the map export is completed.
|
static ArcGISDynamicMapServiceLayer |
create(java.lang.String uri)
Creates a new ArcGISDynamicMapServiceLayer object.
|
static ArcGISDynamicMapServiceLayer |
create(java.lang.String uri,
ArcGISDynamicMapServiceLayer.Options options)
Creates a new ArcGISDynamicMapServiceLayer object.
|
com.google.gwt.core.client.JsArray<DynamicLayerInfo> |
createDynamicLayerInfosFromLayerInfos()
Create an array of DynamicLayerInfos based on the current set of LayerInfo.
|
void |
exportMapImage()
Exports a map using values as specified by ImageParameters.
|
void |
exportMapImage(ImageParameters params)
Exports a map using values as specified by ImageParameters.
|
void |
exportMapImage(ImageParameters params,
MapImageExportHandler handler)
Exports a map using values as specified by ImageParameters.
|
java.lang.String |
getCapabilities()
Capabilities of the map service, possible values are Map, Query and Data.
|
java.lang.String |
getCopyright()
Copyright string as defined by the map service.
|
java.lang.String |
getDescription()
Map description as defined by the map service.
|
int |
getDpi()
The output dpi of the dynamic map service layer.
|
ArcGISDynamicMapServiceLayer.ImageFormat |
getImageFormat()
The output image type.
|
com.google.gwt.core.client.JsArrayString |
getLayerDefinitions()
Sets the layer definitions used to filter the features of individual layers in the map service.
|
com.google.gwt.core.client.JsArray<LayerDrawingOptions> |
getLayerDrawingOptions()
Array of LayerDrawingOptions used to override the way layers are drawn.
|
com.google.gwt.core.client.JsArray<LayerInfo> |
getLayerInfos()
Returns the available layers in service and their default visibility.
|
int |
getMaxImageHeight()
The maximum image height , 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.
|
int |
getMinImageHeight()
The maximum image width, in pixels, that the map service will export.
|
TimeInfo |
getTimeInfo()
Temporal information for the layer, such as time extent.
|
com.google.gwt.core.client.JsArray<LayerTimeOptions> |
getTimeLayerOptions()
Returns the current layer time options if applicable.
|
java.lang.String |
getUnits()
Default units of the layer as defined by the service.
|
float |
getVersion()
The version of ArcGIS Server where the map service is published.
|
com.google.gwt.core.client.JsArrayInteger |
getVisibleLayers()
Gets the visible layers of the exported map.
|
boolean |
imageTransparency()
Whether or not background of dynamic image is transparent.
|
boolean |
isDisabledClientCaching()
When true, images are always requested from the server and the browser's cache is ignored.
|
void |
setDefaultLayerDefinitions()
Resets all layer definitions to those defined in the service.
|
void |
setDefaultLayerDefinitions(boolean doNotRefresh)
Resets all layer definitions to those defined in the service.
|
void |
setDefaultVisibleLayers()
Clears the visible layers as defined in setVisibleLayers, and resets to the default layers of the map service.
|
void |
setDefaultVisibleLayers(boolean doNotRefresh)
Clears the visible layers as defined in setVisibleLayers, and resets to the default layers of the map service.
|
void |
setDisableClientCaching(boolean disable)
Sets whether images are always requested from the server and the browser's cache is ignored.
|
void |
setDPI(int dpi)
Sets the dpi of the exported map.
|
void |
setDPI(int dpi,
boolean doNotRefresh)
Sets the dpi of the exported map.
|
void |
setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos)
Specify an array of DynamicLayerInfos used to change the layer ordering or to redefine the map.
|
void |
setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos,
boolean doNotRefresh)
Specify an array of DynamicLayerInfos used to change the layer ordering or to redefine the map.
|
void |
setGDBVersion(java.lang.String gdbVersion)
Set the version for the ArcGIS DynamicMapServiceLayer.
|
void |
setGDBVersion(java.lang.String gdbVersion,
boolean doNotRefresh)
Set the version for the ArcGIS DynamicMapServiceLayer.
|
void |
setImageFormat(ArcGISDynamicMapServiceLayer.ImageFormat imageFormat)
Sets the image format of the exported map.
|
void |
setImageFormat(ArcGISDynamicMapServiceLayer.ImageFormat imageFormat,
boolean doNotRefresh)
Sets the image format of the exported map.
|
void |
setImageTransparency(boolean transparent)
Sets the background of a dynamic image to transparent.
|
void |
setImageTransparency(boolean transparent,
boolean doNotRefresh)
Sets the background of a dynamic image to transparent.
|
void |
setLayerDefinitions(ArcGISDynamicMapServiceLayer.LayerDefinitions layerDefinitions)
Sets the layer definitions used to filter the features of individual layers in the map service.
|
void |
setLayerDefinitions(ArcGISDynamicMapServiceLayer.LayerDefinitions layerDefinitions,
boolean doNotRefresh)
Sets the layer definitions used to filter the features of individual layers in the map service.
|
void |
setLayerDrawingOptions(LayerDrawingOptions[] layerDrawingOptions)
Specify an array of LayerDrawingOptions that override the way the layers are drawn.
|
void |
setLayerDrawingOptions(LayerDrawingOptions[] layerDrawingOptions,
boolean doNotRefresh)
Specify an array of LayerDrawingOptions that override the way the layers are drawn.
|
void |
setLayerTimeOptions(LayerTimeOptions[] options)
Sets the time-related options for the layer.
|
void |
setLayerTimeOptions(LayerTimeOptions[] options,
boolean doNotRefresh)
Sets the time-related options for the layer.
|
void |
setUseMapTime(boolean update)
Determine if the layer will update its content based on the map's current time extent.
|
void |
setVisibleLayers(int[] ids)
Sets the visible layers of the exported map.
|
void |
setVisibleLayers(int[] ids,
boolean doNotRefresh)
Sets the visible layers of the exported map.
|
boolean |
useMapImage()
Deprecated.
|
getFullExtent, getImageUrl, getInitialExtent, getSpatialReference, refresh
addErrorHandler, addLoadHandler, addOpacityChangeHandler, addUpdateEndHandler, addUpdateHandler, addUpdateStartHandler, addVisibilityChangeHandler, getCredential, getId, getOpacity, getUrl, hide, isloaded, isVisible, setOpacity, setVisibility, show
public static final ArcGISDynamicMapServiceLayer create(java.lang.String uri)
uri
- - URL to the ArcGIS Server REST resource that represents a map service.public static final ArcGISDynamicMapServiceLayer create(java.lang.String uri, ArcGISDynamicMapServiceLayer.Options options)
uri
- - URL to the ArcGIS Server REST resource that represents a map service.options
- - Optional parameters.public final java.lang.String getCapabilities()
public final java.lang.String getCopyright()
public final java.lang.String getDescription()
public final boolean isDisabledClientCaching()
public final int getDpi()
public final ArcGISDynamicMapServiceLayer.ImageFormat getImageFormat()
public final boolean imageTransparency()
public final com.google.gwt.core.client.JsArrayString getLayerDefinitions()
public final com.google.gwt.core.client.JsArray<LayerDrawingOptions> getLayerDrawingOptions()
public final com.google.gwt.core.client.JsArray<LayerInfo> getLayerInfos()
public final com.google.gwt.core.client.JsArray<LayerTimeOptions> getTimeLayerOptions()
public final int getMaxImageHeight()
public final int getMinImageHeight()
public final int getMaxRecordCount()
public final TimeInfo getTimeInfo()
public final java.lang.String getUnits()
public final boolean useMapImage()
public final float getVersion()
public final com.google.gwt.core.client.JsArrayInteger getVisibleLayers()
public final com.google.gwt.core.client.JsArray<DynamicLayerInfo> createDynamicLayerInfosFromLayerInfos()
public final void exportMapImage()
public final void exportMapImage(ImageParameters params)
params
- - Input parameters assigned before exporting the map image.public final void exportMapImage(ImageParameters 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 setDefaultLayerDefinitions()
public final void setDefaultLayerDefinitions(boolean doNotRefresh)
doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setDefaultVisibleLayers()
public final void setDefaultVisibleLayers(boolean doNotRefresh)
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, client side caching is disabled.public final void setDPI(int dpi)
dpi
- - DPI value.public final void setDPI(int dpi, boolean doNotRefresh)
dpi
- - DPI value.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos)
dynamicLayerInfos
- - An array of dynamic layer infos.public final void setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos, boolean doNotRefresh)
dynamicLayerInfos
- - An array of dynamic layer infos.doNotRefresh
- - When true the layer will not refresh the map image. The default value is false.public final void setGDBVersion(java.lang.String gdbVersion)
gdbVersion
- - The name of the version to display.public final void setGDBVersion(java.lang.String gdbVersion, boolean doNotRefresh)
gdbVersion
- - The name of the version to display.doNotRefresh
- - When true the layer will not refresh the map image. The default value is false.public final void setImageFormat(ArcGISDynamicMapServiceLayer.ImageFormat imageFormat)
imageFormat
- public final void setImageFormat(ArcGISDynamicMapServiceLayer.ImageFormat imageFormat, boolean doNotRefresh)
imageFormat
- doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setImageTransparency(boolean transparent)
transparent
- - The default is "true".public final void setImageTransparency(boolean transparent, boolean doNotRefresh)
transparent
- - The default is "true".doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setLayerDefinitions(ArcGISDynamicMapServiceLayer.LayerDefinitions layerDefinitions)
layerDefinitions
- - An array containing each layer's definition.public final void setLayerDefinitions(ArcGISDynamicMapServiceLayer.LayerDefinitions layerDefinitions, boolean doNotRefresh)
layerDefinitions
- - An array containing each layer's definition.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void setLayerDrawingOptions(LayerDrawingOptions[] layerDrawingOptions)
layerDrawingOptions
- - An array of layer drawing options.public final void setLayerDrawingOptions(LayerDrawingOptions[] layerDrawingOptions, boolean doNotRefresh)
layerDrawingOptions
- - An array of layer drawing options.doNotRefresh
- - When true the layer will not refresh the map image. The default value is false.public final void setLayerTimeOptions(LayerTimeOptions[] options)
options
- - 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 setLayerTimeOptions(LayerTimeOptions[] options, boolean doNotRefresh)
options
- - 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.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 setVisibleLayers(int[] ids)
ids
- - Array of layer IDs.public final void setVisibleLayers(int[] ids, boolean doNotRefresh)
ids
- - Array of layer IDs.doNotRefresh
- - Added at version 2.2 When true the layer will not refresh the map image. The default value is false.public final void addGDBChangeHandler(GdbVersionChangeHandler handler)
handler
- - Fired when the geodatabase version is switched.public final void addMapImageExportHandler(MapImageExportHandler handler)
handler
- - Contains the properties of a dynamically generated map image.