public static class ArcGISDynamicMapServiceLayer.LayerDefinitions
extends com.google.gwt.core.client.JavaScriptObject
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. Definition expressions for layers that are currently not visible will be
ignored by the server.Modifier and Type | Method and Description |
---|---|
static ArcGISDynamicMapServiceLayer.LayerDefinitions |
create() |
void |
setLayerDefinition(int index,
java.lang.String definition)
Add layer definition for specified index
|
public static ArcGISDynamicMapServiceLayer.LayerDefinitions create()
public final void setLayerDefinition(int index, java.lang.String definition)
index
- - index of layerdefinition
- - String containing the definition