Symbol labels not rendering when overlapping

116
2
Jump to solution
2 weeks ago
JimBambrough
New Contributor II

I have a Feature Layer where the symbol labels do not render when the symbols collide. Is this by design in the Javascript API? And if so, is there any way to enable the rendering of all Symbol labels even if they overlap? I have a scenario where I need to do something similar with a custom "checkmark" inside as the symbol (instead of text). But the checkmark does NOT render when the symbols overlap

MapLabels.png

0 Kudos
1 Solution

Accepted Solutions
Noah-Sager
Esri Regular Contributor

Hi @JimBambrough, yes, this is by design. We use a deconfliction strategy to reduce the amount of visual clutter so that only some labels are displayed to make them easier to read when there are many features present. This is a configurable property as of 4.16, so you can try setting it to "none" and see if that works for you.

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#de...

View solution in original post

0 Kudos
2 Replies
Noah-Sager
Esri Regular Contributor

Hi @JimBambrough, yes, this is by design. We use a deconfliction strategy to reduce the amount of visual clutter so that only some labels are displayed to make them easier to read when there are many features present. This is a configurable property as of 4.16, so you can try setting it to "none" and see if that works for you.

https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#de...

View solution in original post

0 Kudos
JimBambrough
New Contributor II

Thanks for sharing this Noah. I did test this on the developer REPL and it did work. We are running version 4.11 so we would need to update versions to 4.16 if we go this route. Thanks again!

0 Kudos