Class: FeatureType

Description

Class added v2.0.

A type defined by a feature layer.

Samples

Search for samples that use this class.  

Class hierarchy

esri.layers.FeatureType

Properties

Property Type Description
domains Object

Map of field names to domains.

id Number The feature type identifier.
name String The feature type name.
templates FeatureTemplate[] Array of feature templates associated with this feature type.

Methods

Method Return Value Description
toJson() Object Converts object to its ArcGIS Server JSON representation.
Properties Detail

<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.

See also:
InheritedDomain  

<Number> id

The feature type identifier.

<String> name

The feature type name.

<FeatureTemplate[]> templates

Array of feature templates associated with this feature type.
Methods Detail

toJson()

Converts object to its ArcGIS Server JSON representation. (As of v2.1)
Return value: Object