Method Overview
Name | Return Type | Summary | Function |
---|---|---|---|
Promise<HeatmapStatisticsResult> | Returns an object containing various statistics describing the intensity values for a heatmap visualization of a given point Layer. more details | heatmapStatistics |
Method Details
-
heatmapStatistics(params){Promise<HeatmapStatisticsResult>}
-
Returns an object containing various statistics describing the intensity values for a heatmap visualization of a given point Layer.
ParametersSpecificationparams ObjectSee the table below for details of each parameter.
SpecificationThe layer from which to generate statistics for the pixel intensity values and a given
field
if provided.A view instance used to calculate pixel intensity values based on the features in the current view.
field StringoptionalThe name of the numeric field for which the statistics will be generated.
radius NumberoptionalThe area of influence for each point as a radius in points from the point.
signal AbortSignaloptionalAllows for cancelable requests. If canceled, the promise will be rejected with an error named
AbortError
. See also AbortController.ReturnsType Description Promise<HeatmapStatisticsResult> Returns a promise that resolves to HeatmapStatisticsResult. ExampleheatmapStatistics({ layer: featureLayer, view: mapView }).then(function(stats){ // `stats` contains statistics used to construct a heatmap renderer });
Type Definitions
-
HeatmapStatisticsResult
-
The statistics returned from the heatmapStatistics() function.
- Properties
-
max Number
The maximum density value of all pixels in the view.
min NumberThe minimum density value of all pixels in the view.
summaryStatistics SummaryStatisticsResultThe summary statistics for all values returned from the field, if provided.