Client Side FeatureLayer Fails Points with over 60k

1565
3
05-20-2020 06:22 PM
Sang_HyoukOum
New Contributor III

I am trying to map over 100k points using Client-side featureLayer. It works very well but fails if graphics are over 60k (Actually start failing from 62432). I also tested with featureReduction enabled but still the same. 

You can test by changing the total at: https://jsfiddle.net/aqxk15zu/

Any idea? 

0 Kudos
3 Replies
KenBuja
MVP Honored Contributor

It looks like it's both memory and browser dependent. In Chrome (81.0), I would get a "script error" message above 125380 points. In Firefox (76.0), I would run out of memory somewhere between 400000 and 450000 points. If I put 500000 points, I got a "RangeError: too many arguments provided for a function call" error

Sang_HyoukOum
New Contributor III

Thanks for testing and reply! I just tested on different browsers and got different numbers. Seems like I will have to cluster data by myself before putting into featureLayer to make sure it does not fail.  

0 Kudos
mgeorge
Esri Contributor

Hi Sang Hyouk Oum

Thanks for bringing this to our attention. Definitely the underlying engine should be able to handle more than this number of points, I'll take a look and see what's going on.

0 Kudos