public class LayerInfo
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
int |
getId()
Layer ID assigned by ArcGIS Server for a layer.
|
java.lang.String |
getLayerType() |
com.google.gwt.core.client.JsArray<LegendInfo> |
getLegendInfo()
Get the layers LegendInfo if it is attached to this LayerInfo object.
|
double |
getMaxScale()
The maximum visible scale for each layer in the map service.
|
double |
getMinScale()
The maximum visible scale for each layer in the map service.
|
java.lang.String |
getName()
Layer name as defined in the map service.
|
int |
getParentLayerId()
If the layer is part of a group layer, it will include the parent ID of the group layer.
|
com.google.gwt.core.client.JsArrayInteger |
getSubLayerIds()
If the layer is a parent layer, it will have one or more sublayers included in an array.
|
boolean |
hasDefaultVisibility()
Default visibility of the layers in the map service.
|
boolean |
hasLegendInfo()
Check to see if this LayerInfo has legend information attached.
|
void |
setDefaultVisibility(boolean defaultVisibility)
Set the defaultVisibility parameter.
|
void |
setId(int id)
Set the id
|
void |
setMaxScale(double maxScale)
Set the maxScale parameter.
|
void |
setMinScale(double minScale)
Set the minScale parameter.
|
void |
setName(java.lang.String name)
Set the name parameter.
|
void |
setParentLayerId(int parentLayerId)
Set the parent layer id.
|
void |
setSubLayerIds(int[] subLayerIds)
Set the sublayer ids.
|
public final boolean hasDefaultVisibility()
public final void setDefaultVisibility(boolean defaultVisibility)
defaultVisibility
- - Default visibility of the layers in the map service.public final int getId()
public final void setId(int id)
id
- - Layer ID assigned by ArcGIS Server for a layer. The topmost layer is 0, and each layer follows
sequentially. If a layer is added or removed from the source map document, the ID values will
shift accordingly.public final double getMaxScale()
public final void setMaxScale(double maxScale)
maxScale
- - The maximum visible scale for each layer in the map service. If the map is zoomed in beyond
this scale the layer will not be visible. A value of 0 means that the layer does not have a maximum
scale. This property is only available for map services published using ArcGIS Server 10 SP1 or later.public final double getMinScale()
public final void setMinScale(double minScale)
minScale
- - The maximum visible scale for each layer in the map service. If the map is zoomed in beyond this scale
the layer will not be visible. A value of 0 means that the layer does not have a maximum scale. This
property is only available for map services published using ArcGIS Server 10 SP1 or later.public final java.lang.String getName()
public final void setName(java.lang.String name)
name
- - Layer name as defined in the map service.public final int getParentLayerId()
public final void setParentLayerId(int parentLayerId)
parentLayerId
- - If the layer is part of a group layer, it will include the parent ID of the group layer.
Otherwise, the value is -1. If a layer is added or removed from the source map document, the ID values will shift
accordingly.public final com.google.gwt.core.client.JsArrayInteger getSubLayerIds()
public final void setSubLayerIds(int[] subLayerIds)
subLayerIds
- - If the layer is a parent layer, it will have one or more sublayers included in an array.
Otherwise, the value is null. If a layer is added or removed from the source map document, the ID values will shift accordingly.public final boolean hasLegendInfo()
public final com.google.gwt.core.client.JsArray<LegendInfo> getLegendInfo()
public final java.lang.String getLayerType()