Select to view content in your preferred language

AngleAlignment=Screen does not work when ScaleSymbols=true

110
0
3 weeks ago
Labels (4)
SokoFromNZ
Occasional Contributor

Hello,

I have GraphicsOverlay like this:

 

new GraphicsOverlay { Id = TextOverlayId, ScaleSymbols = true }

 

And putting TextSymbols on it like this:

 

new TextSymbol()
        {
            Text = text ?? string.Empty,
            FontWeight = FontWeight.Normal,
            Color = Color.Black,
            HaloColor = Color.White,
            HaloWidth = 1,
            Size = 15,
            HorizontalAlignment = HorizontalAlignment.Left,
            OffsetX = 10,
            AngleAlignment = SymbolAngleAlignment.Screen
        }

 

To make the scaling of the text work I set the MapView's ReferenceScale like this:

 

_mapView.Map.ReferenceScale = 1000;

 

 

Scaling of the text works fine, but when I rotate the map, all TextSymbols rotate with the map instead of staying horizontal with the screen...why?

I've tried to set GraphicsOverlay.RenderingMode=Dynamic (as mentioned in the AngleAlignment descrption) but it doesn't help.

If I do not set a ReferenceScale the AngleAlignment=Screen works as expected...but scaling doesn't of course.

Any ideas?

thx

Soko

0 Kudos
0 Replies