public class

DynamicLayerInfo

extends LayerInfo
java.lang.Object
   ↳ com.esri.core.map.LayerInfo
     ↳ com.esri.core.map.DynamicLayerInfo

Class Overview

This class represents a single sublayer in a dynamic map service and allows the user to set a new renderer and a new data source for the sublayer.

Summary

Public Constructors
DynamicLayerInfo(int layerId, DrawingInfo drawingInfo, LayerSource source)
Instantiates a new dynamic layer info for the given layer ID in a dynamic map service.
DynamicLayerInfo(int layerId)
Instantiates a new dynamic layer info for the given layer ID in a dynamic map service.
DynamicLayerInfo(int layerId, DrawingInfo drawingInfo)
Instantiate a new dynamic layer info for the given layer ID with the given drawing info.
Public Methods
DrawingInfo getDrawingInfo()
Gets the drawing info.
TimeOptions getLayerTimeOptions()
Get the current layer time options.
void resetToDefault()
Use this method to reset this instance back to default values.
void setDrawingInfo(DrawingInfo drawingInfo)
Sets the drawing info.
void setLayerTimeOptions(TimeOptions layerTimeOptions)
Set the current layer time options.
String toString()
Returns a string representation of the class.
Protected Methods
void toJson(JsonGenerator node)
[Expand]
Inherited Methods
From class com.esri.core.map.LayerInfo
From class java.lang.Object
From interface com.esri.core.map.LayerInfoItem

Public Constructors

public DynamicLayerInfo (int layerId, DrawingInfo drawingInfo, LayerSource source)

Instantiates a new dynamic layer info for the given layer ID in a dynamic map service. The given DrawingInfo will set the renderer used by the service to renderer the sublayer. The given LayerSource will be used to set a new data source for the sublayer.

Parameters
layerId int: the layer ID this instance corresponds to
drawingInfo DrawingInfo: the drawing info
source LayerSource: the data source

public DynamicLayerInfo (int layerId)

Instantiates a new dynamic layer info for the given layer ID in a dynamic map service. This creates a default dynamic layer info that will use the service's renderer for the given layer and the layer's original data source. This constructor can be used with the DynamicLayerInfoCollection class to reorder layers in a dynamic map service without changing their renderer or data source.

Parameters
layerId int: the layer ID this instance corresponds to

public DynamicLayerInfo (int layerId, DrawingInfo drawingInfo)

Instantiate a new dynamic layer info for the given layer ID with the given drawing info. The dynamic layer info will use the layer's original data source.

Parameters
layerId int: sublayer to associate this dynamic layer info with
drawingInfo DrawingInfo: drawing info for the layer

Public Methods

public DrawingInfo getDrawingInfo ()

Gets the drawing info.

Returns
DrawingInfo the drawing info

public TimeOptions getLayerTimeOptions ()

Get the current layer time options.

Returns
TimeOptions layer time options

public void resetToDefault ()

Use this method to reset this instance back to default values. This will tell the service to use the default renderer for the layer and the layer's original data source.

public void setDrawingInfo (DrawingInfo drawingInfo)

Sets the drawing info.

Parameters
drawingInfo DrawingInfo: the new drawing info

public void setLayerTimeOptions (TimeOptions layerTimeOptions)

Set the current layer time options. Users can indicate whether or not the layer should use the time extent specified by the ArcGISDynamicMapServiceLayer TimeExtent property or not, whether to draw the layer features cumulatively or not and the time offsets for the layer.

Parameters
layerTimeOptions TimeOptions: the time options

public String toString ()

Returns a string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String

Protected Methods

protected void toJson (JsonGenerator node)

Throws
Exception