require(["esri/layers/Domain"], function(Domain) { /* code goes here */ });
Description
(Added at v2.0)
Domains define constraints on a layer field. There are two types of domains, coded values and range domains.
Samples
Search for
samples that use this class.
Subclasses
Properties
Methods
toJson() | Object | Converts object to its ArcGIS Server JSON representation. |
Property Details
The domain type. Valid values are "range" or "codedValue".
Method Details
Converts object to its ArcGIS Server JSON representation. (Added at v2.1)