The HeatmapRenderer class is missing from the ArcGIS Runtime SDK for .Net.
上次发布: August 28, 2017ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000106570
已提交
July 14, 2017
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
100.1.0
操作系统
Windows OS
操作系统版本
10.0 64 Bit
状态
Known Limit
经开发团队审核,已确定此问题与不受 Esri 控制的软件的已知限制有关。 问题的“其他信息”部分可能包含进一步说明。
附加信息
In ArcGIS Runtime SDK for .NET v100.1 there is no public HeatmapRenderer class. This functionality will be made available in the API in a future release.
Heatmap renderers can be created in v100.1 using Renderer.FromJson(). They are also supported when opening webmaps.
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);
```
HeatmapRenderer Json spec: https://developers.arcgis.com/web-map-specification/objects/heatmapRenderer/