Select to view content in your preferred language

Labels show on wrong repetition of the globe

05-24-2023 04:50 AM
Labels (2)
New Contributor

I have a weird problem in my Xamarin ArcGIS Runtime app. The label is not present next to my feature:


It took me a while, but I managed to find the missing label by rotation the MapView...


When I pan the map to the left, both duplicates of the label are shown, but when I try to zoom to any one of them, only the other one stays visible.

This is the most basic scenario, the code for the LabelDefinition is just 


TextSymbol textSymbol = new TextSymbol
	Size = 12,
	Color = Color.Black
var labelDefinition = new LabelDefinition(new ArcadeLabelExpression("$feature.Name"), textSymbol)
	Placement = Esri.ArcGISRuntime.ArcGISServices.LabelingPlacement.Automatic


I tried setting LabelDeconflictionStrategy or other properties but to no avail.
The problem disappears when the labels are short, a 3 letter label poses no problem. The more letters the label have, the easier it disappears from the view.

How can I try to resolve this issue?

0 Kudos
0 Replies