Get Top-Left & Bottom-Right position

2 posts, 0 answers
  1. Sonia
    Sonia avatar
    90 posts
    Member since:
    Mar 2012

    Posted 15 Mar 2012 Link to this post

    Hi,
    How can I get top-left position & bottom-right position of the region displayed on the map?
    Thank you.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 20 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top