utils

require(["esri/widgets/smartMapping/support/utils"], function(smartMappingUtils) { /* code goes here */ });
Object: esri/widgets/smartMapping/support/utils
Since: ArcGIS API for JavaScript 4.12

Various utils for tying Smart Mapping renderers to the Smart Mapping slider widgets.

Method Overview

NameReturn TypeSummaryObject
String

Formats a UNIX timestamp to a basic date string.

more details
more detailsutils
Number[]

Computes and returns standard deviation values based on the given average and standard deviation.

more details
more detailsutils

Method Details

formatDateLabel(value){String}
Since: ArcGIS API for JavaScript 4.14

Formats a UNIX timestamp to a basic date string. This function is only intended for convenience in formatting thumb values in slider widgets and does not include additional formatting options.

Parameter:
value Number

The UNIX timestamp to convert to a formatted date string.

Returns:
TypeDescription
StringReturns a formated date string.
getDeviationValues(standardDeviation, average, count){Number[]}

Computes and returns standard deviation values based on the given average and standard deviation.

Parameters:
standardDeviation Number

The standard deviation from the given average.

average Number

The average of the dataset from which to compute standard deviation values.

count Number

The number of standard deviations from the mean to compute.

Returns:
TypeDescription
Number[]Returns the standard deviation values from the given average.

API Reference search results

NameTypeModule
Loading...