In Map Viewer I have a point layer with Clustering Enabled.
The legend shows a Number of features description.
How can I customize the "Number of features" text?
I supposed it should be possible from the Clustering > Clustering Label > Label Field, and then working with Arcade, but I'm not able
This is the Arcade code I have if I chose the </> button:
$feature["cluster_count"];
var value = $feature["cluster_count"];
var num = Count(Text(Round(value)));
var label = When(
num < 4, Text(value, "#.#"),
num == 4, Text(value / Pow(10, 3), "#.0k"),
num <= 6, Text(value / Pow(10, 3), "#k"),
num == 7, Text(value / Pow(10, 6), "#.0m"),
num > 7, Text(value / Pow(10, 6), "#m"),
Text(value, "#,###")
);
return label;
Is there a way to obtain a customized text?
Solved! Go to Solution.
In the Cluster menu, select the "Cluster fields" button.
Then, select the "Number of features" field and rename.