Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Class: FeatureType

require(["esri/layers/FeatureType"], function(FeatureType) { /* code goes here */ });

Description

(Added at v2.0)
A type defined by a feature layer.

Samples

Search for samples that use this class.

Properties

NameTypeSummary
domainsObjectMap of field names to domains.
idNumberThe feature type identifier.
nameStringThe feature type name.
templatesFeatureTemplate[]Array of feature templates associated with this feature type.

Methods

NameReturn typeSummary
toJson()ObjectConverts object to its ArcGIS Server JSON representation.
Property Details

<Object> domains

Map of field names to domains. For example:


{

  "<field1>" : <domain1>,

  "<field2>" : <domain2>

}

In the above dictionary, if the domain defined for a field is an instance of InheritedDomain the application will use the domains defined for the field by the layer. If the dictionary does not include an entry for a field, the field does not have an associated domain.

<Number> id

The feature type identifier.

<String> name

The feature type name.

<FeatureTemplate[]> templates

Array of feature templates associated with this feature type.
Method Details

toJson()

Converts object to its ArcGIS Server JSON representation. (Added at v2.1)
Return type: Object
Show Modal