6

I have a set of data held in a backend database that I wish to render into a heatmap using esri. The data is dynamic based on users search and filters.

I'm creating the feature layer and applying the heatmap renderer but getting no luck with this, one thing I notice is that when I log the layer to the console the graphics geometry's are null whether this is the issue I'm not sure.

I've created a jsfiddle of where I am currently.

https://jsfiddle.net/sgdm9an7/

5
+50

try this

featureSet.geometryType = "esriGeometryPoint"

check this sample, your code and sample different only featureSet.geometryType variable not implemented. so i check this code its run.

https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html

https://jsfiddle.net/jokcv8ph/

  • 1
    Without any context this answer is meaningless – nmtoken Oct 10 '16 at 17:32
  • Please edit your answer to provide more information about where/how to use your suggestion. A brief explanation about why it's the answer would be useful too. – Midavalo Oct 10 '16 at 17:48
  • Just tried this within my jsfiddle and this did work. Thank you @emredelioglu! (Added the forked jsfiddle with this working into your answer!) – KieranDotCo Oct 11 '16 at 8:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.