require(["esri/layers/DimensionalDefinition"], function(DimensionalDefinition) { /* code goes here */ });
Description
(Added at v3.11)
A dimensional definition defines a filter based on one variable and one dimension. There can be one or multiple dimensional slices filtered.
Samples
Search for
samples that use this class.
Constructors
Properties
Methods
toJson() | Object | Converts object to its ArcGIS Server JSON representation. |
Constructor Details
Create a new dimensional definition object from an existing json object.
Parameters:
<Object > json |
Required |
The REST JSON representation for Dimensional Definition. |
Options:
<String > dimensionName |
Optional |
The dimension associated with the variable. |
<Boolean > isSlice |
Optional |
Needed if using special data. |
<Object[] > values |
Required |
Each element can be a single value, or an array of two values (lower and upper bound). The type of these values are based on dimensionName. |
<String > variableName |
Required |
The name of the variable. |
Sample:
var dim = new dimensionalDefinition({
variableName: "Salinity",
dimensionName: "StdZ",
values: [-10,-2,0],
isSlice: false
})
Property Details
(Optional) The dimension associated with the variable.
Sample:
{
"variableName" : "Salinity",
"dimensionName" : "StdZ",
"values" : [-10],
"isSlice":false
}
Indicates whether the values indicate slices (rather than ranges).
Known values: true | false
Default value: false
Sample:
{
"variableName" : "Salinity",
"dimensionName" : "StdZ",
"values" : [-10],
"isSlice":false
}
An array of tuples (min, max) each defining a range of valid values along the specified dimension.
Sample:
{
"variableName" : "Salinity",
"dimensionName" : "StdZ",
"values" : [-10],
"isSlice":false
}
The variable name by which to filter.
Sample:
{
"variableName" : "Salinity",
"dimensionName" : "StdZ",
"values" : [-10],
"isSlice":false
}
Method Details
Converts object to its ArcGIS Server JSON representation.