Select to view content in your preferred language

How to Change Symbology if clustering is enabled?

782
2
12-22-2020 12:29 AM
ChristianBischof
Esri Contributor

Hi folks,

I have a FeatureLayer with features which are rendered with a UniqueValueRenderer  (based on their status they show on the map visualized by custom images img1 img2 or img3. This works well. I have also applied clustering successfully.

Now I want to change the symbology for those features which are clustered to simply show up with a SimpleMarkerSymbol Circle and the amount of features of the cluster inside.

How could I achieve this?

Thanks in advance,
Christian

Tags (2)
0 Kudos
2 Replies
KarstenRank
Frequent Contributor

Hi Christian,

have a look at the new cluster options in Javascript API 1.8 

https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-query/index.htm...

Greetings Karsten 

ShayMalka
New Contributor

const clusterConfig = {
type: "cluster",

symbol: {
type: "simple-marker",
style: "circle",
size: 10,
color: [255, 255, 255, 0.8],
outline: {
color: [155, 89, 182],
size: 10,
width: 2
}