| Numéro d’ID de bogue |
BUG-000106570 |
| Envoi | July 14, 2017 |
| Dernière modification | June 5, 2024 |
| S’applique à | ArcGIS Runtime SDK |
| Version trouvée | 100.1.0 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 64 Bit |
| Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
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/
Étapes pour reproduire
ID de bogue: BUG-000106570
Logiciel: