This is a migrated thread and some comments may be shown as answers.

Get Top-Left & Bottom-Right position

1 Answer 61 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sonia
Top achievements
Rank 1
Sonia asked on 15 Mar 2012, 01:04 PM
Hi,
How can I get top-left position & bottom-right position of the region displayed on the map?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 20 Mar 2012, 09:27 AM
Hi Sonia,

You can use the RadMap.LocationRect property which represents the region which is displayed on the map. The LocationRect structure contains the Northwest and Southeast properties you can use.
The sample code is below:
Location topLeft = this.radMap.LocationRect.Northwest;
Location bottomRight = this.radMap.LocationRect.Southeast;

For more information please take a look at the following API reference:
http://www.telerik.com/help/silverlight/p_telerik_windows_controls_radmap_locationrect.html

Greetings,
Andrey Murzov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Map
Asked by
Sonia
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or