public class FeatureSet
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static FeatureSet |
create()
Creates a new FeatureSet object.
|
static FeatureSet |
create(com.google.gwt.core.client.JavaScriptObject json)
Creates a new FeatureSet object using a JSON object.
|
java.lang.String |
getDisplayFieldName()
The name of the layer's primary display field.
|
com.google.gwt.core.client.JsArray<Graphic> |
getFeatures()
The array of graphics returned.
|
JSObject |
getFieldAliases()
Set of name-value pairs for the attribute's field and alias names.
|
java.lang.String |
getGeometryType()
The geometry type of the FeatureSet.
|
SpatialReference |
getSpatialReference()
When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's spatial reference by default.
|
void |
setDisplayFieldName(java.lang.String displayFieldName)
Set the display field name parameter
|
void |
setFeatures(Graphic[] features)
Set the features parameters.
|
void |
setFieldAliases(JSObject fieldAliases)
Set the field aliases parameter.
|
void |
setGeometryType(java.lang.String geometryType)
set the geometry type parameter.
|
void |
setSpatialReference(SpatialReference spatialReference)
set the spatial reference parameter.
|
public static FeatureSet create()
public static FeatureSet create(com.google.gwt.core.client.JavaScriptObject json)
json
- - A JSON object that contains feature set.public final java.lang.String getDisplayFieldName()
public final void setDisplayFieldName(java.lang.String displayFieldName)
displayFieldName
- - The name of the layer's primary display field. The value of this property matches the name of one of the fields of
the feature. Only applicable when the FeatureSet is returned from a task. It is ignored when the FeatureSet is used as input to a geoprocessing task.public final com.google.gwt.core.client.JsArray<Graphic> getFeatures()
public final void setFeatures(Graphic[] features)
features
- - The array of graphics returned.public final JSObject getFieldAliases()
public final void setFieldAliases(JSObject fieldAliases)
fieldAliases
- - Set of name-value pairs for the attribute's field and alias names.public final java.lang.String getGeometryType()
public final void setGeometryType(java.lang.String geometryType)
geometryType
- - The geometry type of the FeatureSet.public final SpatialReference getSpatialReference()
public final void setSpatialReference(SpatialReference spatialReference)
spatialReference
- - When a FeatureSet is used as input to Geoprocessor, the spatial reference is set to the map's
spatial reference by default. This value can be changed. When a FeatureSet is returned from a task, the value is the result
as returned from the server.