MapPoint mapPoint1 = Map.ScreenToMap(point); // Map is your esri map control MapPoint mapPoint2 = Map.ScreenToMap(newPoint(point.X + canvas.Width, point.Y + (or -) canvas.Height)); ElementLayer.SetEnvelope(canvas, newEnvelope(mapPoint1, mapPoint2)); // canvas is your Canvas control
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.