Hi Petar,
I did the following but it doesn't give the expected result:
private Location CalculateLocationAtPixelOffset(Location baseLocation, Point2D pixelOffset)
{
var baseLocationInPixel = baseLocation.GetPoint(MyRadMap);
var offsetLocationInPixel = new Point(baseLocationInPixel.X + pixelOffset.X, baseLocationInPixel.Y + pixelOffset.Y);
return Location.GetCoordinates(MyRadMap, offsetLocationInPixel);
}
I'm not sure of what are the logical unit and what is the reference point (0,0) of pixel points so I may did something wrong.
Also, in my custom MapGeometryView, I have a DependencyProperty for the RadMap so that I can bind to ZoomChanged event to update the GeometryData when user zoom on the map, but the view is not updated when I update GeometryData. I had to add an other DependencyProperty that is bound to the ZoomLevel of the map to make it work (and that property doesn't have a change callback). So I wonder how it works and if it'a a bug or something.
Thank you,
Etienne