You can draw the Canvas based on given NW and SE coordinates using the following approach:
- Convert the Locations to Point objects which represents the Locations' positions on the screen relative to the map. You can do that using the Location's GetPoint) method.
Location nw =
Point topLeft = nw.GetPoint(
- Calculate the size of the canvas based on Points' X and Y and set it to the Canvas Element.
Here is an example for this approach:
var nw =
var se =
var topLeft = nw.GetPoint(
var bottomRight = se.GetPoint(
canvas.Width = bottomRight.X - topLeft.X;
canvas.Height = bottomRight.Y - topLeft.Y;
Please give it a try and let me know if it works for you.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items