AnsweredAssumed Answered

Point Clustering - changing query won't update map

Question asked by SJCity on Jan 23, 2017
Latest reply on Jan 25, 2017 by SJCity

Hi all!

based on the modified esri example for clustering points I found on GitHub at 

GitHub - Esri/cluster-layer-js: One example of how to cluster many point features,

I'm trying to figure out how to update the map when the query changes.

For example, I have a map that shows all 2016 traffic accidents. Everything works fine, points are clustering, etc.. The user should have the option to show only non-injury accidents with the click of a checkbox or button. The query works, but the map still displays all points, regardless of the used (changed) query. 

I can't figure out how to redraw/re-create the clusterfeaturelayer and show only non-injury accidents.


Any ideas?

Thanks for your help!!


Marc Seliger