Clustering is not yet supported in 4x. Work is in progress, thanks!
so can u tell me how can i add clusters on feature layer on 3.x
Here is a sample of how to do clustering in 3x.
It can also be done in Online and opening the layer or webmap with 3x.
Thanks for your response, actually i already tried this example when i put my Url in serviceUrl the code display the layer but not in cluster form, i have no idea why this is happening !! kindly guide me how can i show my Url in the form of clusters.
Does your layer meet the following requirements:
Point data in FeatureLayer (from service or FeatureCollection) and CSVLayer.The map must have a spatial reference of Web Mercator or WGS84.If the layer contains more than 50,000 features, then only the first 50,000 will be clustered.A FeatureLayer created from a service URL must point to a service that supports pagination (ArcGIS Server version 10.3.1 or higher).When editing is initiated with the Editor widget, then feature reduction is disabled until the Editor widget is destroyed.Feature reduction is disabled when the layer has one of the following renderers: HeatmapRenderer, BlendRenderer, TemporalRenderer, or ScaleDependentRenderer.
Thanks Ken Buja i'll try this
Retrieving data ...