arcgis javascript api create heatmap with graphicslayer

1278
1
02-07-2017 08:42 PM
BoYan1
by
New Contributor II

I have some client side graphics and each graphic has different kinds of fields (attributes). Is there a way to create a heat map based on these graphics? I know I can probably use feature collection object and create a feature layer based on the feature collection, but what if in my graphics, they have different fields (attributes)? Is it still possible to create a feature collection for these graphics? Is there any examples? Thanks!

0 Kudos
1 Reply
FC_Basson
MVP Regular Contributor

It should be possible with the HeatmapRenderer | API Reference | ArcGIS API for JavaScript 3.19 

It also allows you to specify the attribute field to use for point weights.  If you want to keep your original feature layer, you probably need to clone it first and the apply the renderer on the cloned layer.

0 Kudos