require(["esri/widgets/smartMapping/support/utils"], (smartMappingUtils) => { /* code goes here */ });
import * as smartMappingUtils from "@arcgis/core/widgets/smartMapping/support/utils.js";
esri/widgets/smartMapping/support/utils
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
formatDateLabel(value){String}
Since: ArcGIS Maps SDK for JavaScript 4.14utils since 4.12, formatDateLabel added at 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.
Parametervalue NumberThe UNIX timestamp to convert to a formatted date string.
ReturnsType Description String Returns a formatted date string.
-
formatNumberLabel
formatNumberLabel(value){String}
Since: ArcGIS Maps SDK for JavaScript 4.19utils since 4.12, formatNumberLabel added at 4.19. -
Formats a numeric value for display as a label based on the current locale.
Parametervalue NumberThe value to convert to a formatted label.
ReturnsType Description String Returns a formatted label based on the current locale.
-
Computes and returns standard deviation values based on the given average and standard deviation.
ParametersReturns