utils

AMD: require(["esri/widgets/smartMapping/support/utils"], (smartMappingUtils) => { /* code goes here */ });
ESM: import * as smartMappingUtils from "@arcgis/core/widgets/smartMapping/support/utils.js";
Object: esri/widgets/smartMapping/support/utils
Since: ArcGIS Maps SDK for JavaScript 4.12

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

Method Overview

Name Return Type Summary Object

Formats a UNIX timestamp to a basic date string.

utils

Formats a numeric value for display as a label based on the current locale.

utils

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

utils

Method Details

formatDateLabel

Method
formatDateLabel(value){String}
Since: ArcGIS Maps SDK 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
Type Description
String Returns a formatted date string.

formatNumberLabel

Method
formatNumberLabel(value){String}
Since: ArcGIS Maps SDK for JavaScript 4.19

Formats a numeric value for display as a label based on the current locale.

Parameter
value Number

The value to convert to a formatted label.

Returns
Type Description
String Returns a formatted label based on the current locale.

getDeviationValues

Method
getDeviationValues(standardDeviation, average, count){Number[]}

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

Parameters
standardDeviation Number|null|undefined

The standard deviation from the given average.

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
Type Description
Number[] Returns the standard deviation values from the given average.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close