Did the heat map renderer not make it into the most recent update?

577
2
01-22-2018 12:17 PM
ClayGinn
New Contributor II

I was looking through the release notes and the API reference for 100.2 and I don't see anything about the heat map. Did it not make it into the current update? If not, when can we expect it to arrive?

Thanks,

Clay

0 Kudos
2 Replies
dotMorten_esri
Esri Notable Contributor

APIs for creating and assigning heat map renderers did not make it into the API. However if you load a webmap with a heatmap renderer already defined, the map will render it just fine. So there's basically internal rendering support at this point, but the public API to create/modify/assign isn't there yet.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Hi Clay,

It is also possible to create a heatmap using Renderer.FromJson():

 

Example:

string heatmapJson = "{\"blurRadius\":10,\"colorStops\":[{\"color\":[133,193,200,0],\"ratio\":0},{\"color\":[133,193,200,0],\"ratio\":0.01},{\"color\":[133,193,200,255],\"ratio\":0.01},{\"color\":[133,193,200,255],\"ratio\":0.01},{\"color\":[144,161,190,255],\"ratio\":0.0925},{\"color\":[156,129,132,255],\"ratio\":0.17500000000000002},{\"color\":[167,97,170,255],\"ratio\":0.2575},{\"color\":[175,73,128,255],\"ratio\":0.34},{\"color\":[184,48,85,255],\"ratio\":0.42250000000000004},{\"color\":[192,24,42,255],\"ratio\":0.505},{\"color\":[200,0,0,255],\"ratio\":0.5875},{\"color\":[211,51,0,255],\"ratio\":0.67},{\"color\":[222,102,0,255],\"ratio\":0.7525000000000001},{\"color\":[233,153,0,255],\"ratio\":0.8350000000000001},{\"color\":[244,204,0,255],\"ratio\":0.9175000000000001},{\"color\":[255,255,0,255],\"ratio\":1}],\"maxPixelIntensity\":1249.2897582229123,\"minPixelIntensity\":0,\"type\":\"heatmap\"}";
FeatureLayer featureLayer = new FeatureLayer(new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0"));
featureLayer.Renderer = Renderer.FromJson(heatmapJson);
Map.OperationalLayers.Add(featureLayer);

 

For the spec see https://developers.arcgis.com/web-map-specification/objects/heatmapRenderer/

 

Cheers

Mike

0 Kudos