How to show label at all scales?

279
3
Jump to solution
03-15-2018 04:24 AM
SivaramKrishnan2
New Contributor III

Hi 

I'm trying to put label on my dynamically created feature layer in WAB 2.6 and i could add the labels and getting the output.

The thing is I'm not getting the labels for some of the states as shown in the below image.but when i zoom in, the labels are visible.

How to avoid this issue? I want to the labels at all scales for all the feature.

code snippet:

Thanks 

Siva

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Actually, The LabelClass does not provide any way to prioritize labeling or any ability to adjust the internal JS API conflict rules. So there is no coding that can be done to fix what you are encountering. 

View solution in original post

3 Replies
XanderBakker
Esri Esteemed Contributor

If there is a conflict between labels (they might overlap due to the reduced available space) the label will not be shown. You could try to reduce the size of the font, but other alternative would probably require some programming.

SivaramKrishnan2
New Contributor III

Hi Xander

Thank you, do you have any samples code snippet to get the desired output?

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Actually, The LabelClass does not provide any way to prioritize labeling or any ability to adjust the internal JS API conflict rules. So there is no coding that can be done to fix what you are encountering. 

View solution in original post