HelloI created a map and when the user clicks inside, the code creates a red point at the location, and sets a text above this point.Something like that :
This is the code :
var redPointSymbol = new SimpleMarkerSymbol { Color = new SolidColorBrush { Color = Colors.Red } };
var textSymbol = new TextSymbol { Text = "Point A", FontSize = 15 };
var textPoint = new MapPoint(mapPoint.X, mapPoint.Y + textDistance);
myGraphicsLayer.Graphics.Add(new Graphic { Symbol = redPointSymbol, Geometry = mapPoint});
myGraphicsLayer.Graphics.Add(new Graphic { Symbol = textSymbol , Geometry = textPoint });
The problem is when I zoom the map.. I want that the distance between the red point and the text will be final. In every zoom level. I created the graphic objects by map coordinates, and therefore when I'm zoom in/out, the distance between them grows up.The only solution I can think about, is to set the text Graphic on the original map point, and use OffsetX & OffsetY (for the TextSymbol). It's might be good becaute the offsets work by screen coordinates, but I want to add after that a line that connecting between the point and the text. And for that I must create a polyline by map coordinates.There is a way to combine those Graphics together? Anyone have an idea to do that? 😞Thank you guys!