I trying to find the Geopoint of corners
- TopLeft
- TopRight
- BottomLeft
- BottomRight
The information that MapControl provides is
- Center (Geopoint)
- ZoomLevel (Double min:1, max:20)
- ActualHeight (Double)
- ActualWidth (Double)
Based on that information can I find the corners?
I was thinking something like that:
double HalfHeight = Map.ActualHeight / 2;
double HalfWidth = Map.ActualWidth / 2;
So that means that Center
Geopoint is located on HalfWdidth
(X) and HalfHeight
(Y). Can somehow this help me?
Edit: My problem was very similar with this question as rbrundritt mentioned but it was giving only TopLeft and BottomRight. Based on the accepted answer of that question (which is by rbrundritt) I also completed the other two and wrapped them in Extension, check my answer below. Thank you rbrundritt.