public static class ArcGISDynamicMapServiceLayer.Options
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static ArcGISDynamicMapServiceLayer.Options |
create()
Create a new options object for ArcGISDynamicMapServiceLayer
|
void |
setGdbVersion(java.lang.String gdbVersion)
Set the gdb version.
|
void |
setId(java.lang.String id)
Set the layer id.
|
void |
setImageParameters(ImageParameters imageParameters)
Set the layers image parameters
|
void |
setOpacity(double opacity)
Set the initial opacity
|
void |
setVisible(boolean isVisible)
Set if layer should be initially visible.
|
void |
useMapImage(boolean use)
Deprecated.
|
void |
useMapTime(boolean useMapTime)
When true, the layer will update its content based on the map's time extent.
|
public static final ArcGISDynamicMapServiceLayer.Options create()
public final void setGdbVersion(java.lang.String gdbVersion)
gdbVersion
- - Specify the geodatabase version to display.public final void setId(java.lang.String id)
id
- - Id to assign to the layer. If not assigned, esri.Map assigns value.public final void setImageParameters(ImageParameters imageParameters)
imageParameters
- - Represents the image parameter options.public final void setOpacity(double opacity)
opacity
- - Initial opacity or transparency of layer. Values range from 0.0 to 1.0,
where 0.0 is 100% transparent and 1.0 has no transparency. The default value is 1.0.public final void useMapImage(boolean use)
use
- - By default, images are exported in MIME format, and the image is streamed
to the client. When useMapImage is set to true, the image is saved to the server, and a JSON
formatted response is sent to the client with the URL location of the image. A second call is
automatically made to the server to retrieve the image. This methodology is required for secure
services that go through a proxy server. In this situation, a map image cannot be streamed.
Deprecated at v2.0. Prior to v2.0 this option was used to configure the map to use the proxy all
the time. This is not the optimal behavior so at v2.0 the switch to use the proxy will automatically
happen if needed.public final void useMapTime(boolean useMapTime)
useMapTime
- public final void setVisible(boolean isVisible)
isVisible
- - Initial visibility of the layer. Default is true.