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

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

NameTypeSummary
nameStringThe domain name.
typeStringThe domain type.

Methods

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

<String> name

The domain name.

<String> type

The domain type. Valid values are "range" or "codedValue".
Method Details

toJson()

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