Select to view content in your preferred language

Applying featureReduction to GraphicsLayers

72
1
Tuesday
RyanMotamen
New Contributor

Hello, I am working in Esri Javascript SDK 4.32 and have a question. I am looking to implement clustering in client-side graphics using GraphicsLayers.

I have seen that there exists a property named featureReduction on FeatureLayers that enables clustering but this does not exist on GraphicsLayers.

I am wondering if there is an established solution for enabling clustering for GraphicsLayers or if this will require a more customized solution. Thanks!

0 Kudos
1 Reply
JonathanDawe_BAS
Occasional Contributor

An option might be to populate a feature layer with client side graphics and then use the rendering options?

This is the guidance Esri gives

It is generally preferred to construct a FeatureLayer with its source property when working with client-side graphics. The FeatureLayer performs better with larger datasets and has more capabilities, including rendering, querying, and labeling.

 

0 Kudos