LabelPoints returns the correct points, but then the text's top-left (or bottom-left) corner is placed at that point. I want to center the text. Not sure how to offset it, since the text can change. Any ideas?
<esri:TextSymbol FontSize="14" OffsetX="50" OffsetY="7" Text="{Binding Attributes[myAttribute]}">
<esri:TextSymbol.ControlTemplate>
<ControlTemplate>
<TextBlock Width="100" FontFamily="{Binding Symbol.FontFamily}"
FontSize="{Binding Symbol.FontSize}"
Foreground="{Binding Symbol.Foreground}"
Text="{Binding Symbol.Text}" TextAlignment="Center" />
</ControlTemplate>
</esri:TextSymbol.ControlTemplate>
</esri:TextSymbol>
Yeah I tried that but then there are different-sized features that should have their labels visible at different resolutions. Any idea about that?
I guess, you'd rather to get a labelling engine at client side working label by label but unfortunately, that doesn't exist yet.