Label Definition for displaying labels

723
2
07-22-2018 07:19 AM
VishnuB
New Contributor III

I am using "LabelDefinition::fromJson(labelJson, this)" to label graphics in graphicsoverlay, I have set the 'deconflictionStrategy' to 'dynamic' in the Json string to dynamically align the labels without overlapping and it works fine. But even if we set this property, few labels gets hidden to avoid the overlapping of labels. Is it possible to change this property so that all labels get dynamically aligned as well as no labels are hidden?


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

There is not a setting to enable this. In theory, you should be able to set allowOverlapOfLabel:avoid and allowOverlapOfFeatureInterior:avoid, and this would enable the dynamic movement of the label to avoid overlap, but accept overlap when it couldn’t be avoided. However, we tested this out and it seems like there is a bug, so this won't work at the moment. We are looking into it.

0 Kudos
VishnuB
New Contributor III

Hi Lucas,

Is it possible to set priority for labels?, so that at least for the labels which we give priority will not be hidden.

Thank You