Hey,
While expanding some functionality to support MapView and SceneView, I ran into some inconsistencies between the two. While not a major issues, I figured I'd mention it, in case it is not yet on your bucket list.
CompositeSymbol with text renders differently in MapView and SceneView.
Summary
- MapView, Text outline are not respected (or at least does not render the same)
- SceneView: Default TextSymbol alignment is different. Can be modified with OffsetY.
- SceneView: Overlapping symbols merge texts - apparently (second image - A + 2 and 3 + 1).
- SceneView: Label not displayed (actually rather inconvenient)
var compositeSymbol = new CompositeSymbol();
compositeSymbol.Symbols.Add(new SimpleMarkerSymbol
{
Color = GetBrush(state).Color.ToDrawing(),
Style = SimpleMarkerSymbolStyle.Circle,
Outline = new SimpleLineSymbol
{
Style = SimpleLineSymbolStyle.Solid,
Width = 1,
Color = Colors.Black.ToDrawing()
},
Size = 18
});
compositeSymbol.Symbols.Add(new TextSymbol
{
Text = priorityText,
Color = Colors.White.ToDrawing(),
OutlineColor = Colors.Black.ToDrawing(),
OutlineWidth = 2,
FontFamily = "Segoe UI Black",
Size = 16
});
ToDrawing() just converts System.Windows.Color to System.Drawing.Color
Text symbol related differences in MapView vs SceneView are already in our backlog and I know our core team is actively seeking ways to improve rendering and symbology so I will share your feedback to the team. Thank you.