I am trying to show Heatmap through FeatureLayer. I tried my best but didn't get success to show heatmap on FeatureLayer with latest ArcGIS JavaScript API 4.8. My Code is located here. I used HeatMapRenderer to render the point on the map as the heat map. But somehow it is not working at all. I think I am missing something which would be an easy fix.
My code is given below:
https://jsfiddle.net/SiddharthMishra/eLg10whk/
It would be a great help if we get some example using heatmap with the feature layer. Especially in Angular 5/6.
featurelayer heatmaprenderer renderer featurelayerwithheatmaprenderer