public static class FeatureLayer.Options
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static FeatureLayer.Options |
create()
Create new options for FeatureLayer constructor
|
void |
setAutoGeneralize(boolean autoGeneralize)
Set the autoGeneralize parameter.
|
void |
setDisplayOnPan(boolean displayOnPan)
Set default behavior for graphics.
|
void |
setGdbVersion(java.lang.String gdbVersion)
Set the gdbVersion
|
void |
setId(java.lang.String id)
Set layers id.
|
void |
setInfoTemplate(InfoTemplate infoTemplate)
Set the layers InfoTemplate.
|
void |
setMaxAllowableOffset(int offset)
Set the max offset for layer.
|
void |
setMode(FeatureLayer.Modes mode)
Specify the layers mode of operation.
|
void |
setOpacity(float opacity)
Initial opacity or transparency of layer.
|
void |
setOutFields(java.lang.String[] outFields)
Set outFields parameter.
|
void |
setSource(LayerDataSource source)
Set the source parameter.
|
void |
setSource(LayerMapSource source)
Set the source parameter.
|
void |
setTileHeight(int tileHeight)
Set the tileHeight parameter.
|
void |
setTileWidth(int tileWidth)
Set the tileWidth parameter.
|
void |
setTrackIdField(java.lang.String trackIdField)
Set the trackIdField parameter.
|
void |
setVisible(boolean visible)
Set the visible parameter.
|
void |
useMapTime(boolean useMapTime)
Set the useMapTime parameter.
|
public static FeatureLayer.Options create()
public final void setAutoGeneralize(boolean autoGeneralize)
autoGeneralize
- - Enable or disable the auto generalization of features from a non-editable layer in
on-demand mode. When true, the layer uses the current map resolution as the maxAllowableOffset
for all queries issued to the server. The default value is true. As of v2.7public final void setDisplayOnPan(boolean displayOnPan)
displayOnPan
- - When true, graphics are displayed during panning. When false, the graphics are turned
off during pan movement. Setting to false may improve performance in Internet Explorer.
The default is true.public final void setGdbVersion(java.lang.String gdbVersion)
gdbVersion
- - Specify the geodatabase version to display. (As of v2.7). Requires ArcGIS Server
service 10.1 or greaterpublic final void setId(java.lang.String id)
id
- - Unique ID to assign to the layer. If not assigned, esri.Map creates a unique ID.public final void setInfoTemplate(InfoTemplate infoTemplate)
infoTemplate
- - The template that defines the content to display in the map info
window when the user clicks on a feature. If not specified, the info window will not be displayed.public final void setMaxAllowableOffset(int offset)
offset
- - The maximum allowable offset, only applicable for layers that are not editable.public final void setMode(FeatureLayer.Modes mode)
mode
- - mode typepublic final void setOpacity(float opacity)
opacity
- public final void setOutFields(java.lang.String[] outFields)
outFields
- - Unique ID to assign to the layer. If not assigned, esri.Map creates a unique ID.public final void setSource(LayerMapSource source)
source
- - The dynamic layer source. Required when the feature layer url is set
to http://public final void setSource(LayerDataSource source)
source
- - The dynamic data source. Required when the feature layer url is set
to http://public final void setTileHeight(int tileHeight)
tileHeight
- - Specify the size of the virtual tiles, used in on-demand mode. The virtual tile scheme is used in on-demand
mode to make effective use of browser caching. The default value is 512. This option is only valid in on-demand mode and must
be a square. For example, specifying a value like 512x256 is not supported.public final void setTileWidth(int tileWidth)
tileWidth
- - Specify the size of the virtual tiles, used in on-demand mode. The virtual tile scheme is used in on-demand
mode to make effective use of browser caching. The default value is 512. This option is only valid in on-demand mode and must
be a square. For example, specifying a value like 512x256 is not supported.public final void setTrackIdField(java.lang.String trackIdField)
trackIdField
- - The name of the trackIdField.public final void useMapTime(boolean useMapTime)
useMapTime
- - When true, the layer will update its content based on the map's time extent. The default values is true.public final void setVisible(boolean visible)
visible
- - Initial visibility of the layer. Default is true.