public static class Legend.LayerInfo
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
void |
addLayer(Layer layer)
Add layer, service name will be used for title
|
void |
addLayer(Layer layer,
java.lang.String title)
Add layer with title
|
static Legend.LayerInfo |
create() |
public static Legend.LayerInfo create()
public final void addLayer(Layer layer, java.lang.String title)
layer
- - A layer to add to the legend. Valid layer types are: ArcGISTiledMapServiceLayer,
ArcGISDynamicMapServiceLayer or GraphicsLayer.title
- - Specify a title for the layer.public final void addLayer(Layer layer)
layer
- - A layer to add to the legend. Valid layer types are: ArcGISTiledMapServiceLayer,
ArcGISDynamicMapServiceLayer or GraphicsLayer.