Pointclustering not working with GeoJSONLayer

461
1
Jump to solution
04-07-2020 10:23 PM
AldwinGregorio
New Contributor III

Hi. Im working with 4.14 version of JavaScript API. I would like to cluster my points but apparently, featureReduction cluster type is not working with my GeoJSONLayer instance. Am I not doing it correctly? 

This is my code. 

Getting this error. 

This is the map. 

Thanks! 

1 Solution

Accepted Solutions
AldwinGregorio
New Contributor III

See that the point clustering was just implemented at the 4.14 release. Since I'm working with react, the esri-loader version I have can't load the 4.14 API, thus, defaulting to 4.13 version. I updated my esri-loader in this case by doing npm install --save esri-loader. Works now correctly.

View solution in original post

1 Reply
AldwinGregorio
New Contributor III

See that the point clustering was just implemented at the 4.14 release. Since I'm working with react, the esri-loader version I have can't load the 4.14 API, thus, defaulting to 4.13 version. I updated my esri-loader in this case by doing npm install --save esri-loader. Works now correctly.