Cluster labels

289
4
Jump to solution
01-13-2022 08:06 AM
PauloRicca
New Contributor II

Hi everyone,

We are using feature reduction on a map that we also add graphics to, and the cluster label number always seems to appear over the other graphics. Do you know if there's a way of controlling this drawing order?

PauloRicca_0-1642089834376.png

here the clusters are the white circles and the blue marker is the graphic we're adding with mapView.graphics.push

Thanks in advance!

Paulo

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi @PauloRicca, this is the expected behavior. The labels will always draw on top. If you want the labels to not be drawn on top, and be part of the feature itself, then you would need to use CIM.

https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html

 

View solution in original post

0 Kudos
4 Replies
Noah-Sager
Esri Regular Contributor

Hi @PauloRicca, this is the expected behavior. The labels will always draw on top. If you want the labels to not be drawn on top, and be part of the feature itself, then you would need to use CIM.

https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html

 

0 Kudos
PauloRicca
New Contributor II

Hi Noah,

Thanks for your reply. Do you mean using a CIMSymbol instead of the blue marker or as an alternative to the cluster symbols in a custom implementation of clustering?

0 Kudos
Noah-Sager
Esri Regular Contributor

I mean use CIM as an alternative to the cluster symbols so that graphics show-up on top.

PauloRicca
New Contributor II

I see, thanks I'll try that!

0 Kudos