radmap's GeoBoundsSE doesn't work properly

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

    Posted 06 Dec 2012 Link to this post

    <telerik:RadMap Loaded="radMap_Loaded" MapMouseClick="radMap_MapMouseClick" ZoomChanged="radMap_ZoomChanged" MouseClickMode="None" Grid.Column="2" Grid.Row="0" ZoomBarPresetsVisibility="Collapsed"  CommandBarVisibility="Collapsed" ZoomBarVisibility="Collapsed" NavigationVisibility="Collapsed" x:Name="radMap" >
                <telerik:RadMap.Providers>
                    <telerik:OpenStreetMapProvider/>
                    <telerik:BingMapTrafficProvider/>
                </telerik:RadMap.Providers>
    </telerik:RadMap>
    .cs:

    var BoundsNW = this.radMap.GeoBoundsNW;//Negative infinity

    var BoundsSE = this.radMap.GeoBoundsSE;//Negative infinity

    How to get telerik:RadMap Present location GeoBoundsSE and GeoBoundsNW ?
    Thank you.

  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 12 Dec 2012 Link to this post

    Hello,

    The GeoBounds, GeoBoundsNE and GeoBoundsSW are used to limit map panning with specified region. To get geographical region which is visible inside viewport of the map control you should use the RadMap.LocationRect property.

    Greetings,
    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top