Map Navigation Location

3 posts, 0 answers
  1. Scott Michetti
    Scott Michetti avatar
    92 posts
    Member since:
    Feb 2010

    Posted 07 Jun 2010 Link to this post

    Hello, is there a way to move the MapNavigation control to the top left of the screen, instead of the bottom center?
    Thanks.

    Scott
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 08 Jun 2010 Link to this post

    Hello Scott Michetti,

    All navigation controls can be placed anywhere on the page (over or outside the map control). To do this you should hide correspondent control in the default layout using correspondent visibility property, and, then add necessary controls to your page. For example, following code hide default navigation control and add new one at the left top corner of the map:

    <Grid x:Name="LayoutRoot" Background="White">
        <map:RadMap x:Name="radMap" 
            Center="42,-122"
            ZoomLevel="6"
            InitializeCompleted="MapInitializeCompleted"
            UseDefaultLayout="True"
            NavigationVisibility="Collapsed">
        </map:RadMap>
              
        <layer:MapNavigation Name="navigation" 
             VerticalAlignment="Top" 
             HorizontalAlignment="Left"
             Margin="10,10,0,0"/>
    </Grid>

    private void MapInitializeCompleted(object sender, EventArgs e)
    {
        // Set map control to navigation control.
        this.navigation.MapControl = this.radMap;
    }

    By the way, you can turn on/off all map controls in the default layout using UseDefaultLayout property of the RadMap control.

    Greetings,
    Andrey Murzov
    the Telerik team

    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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Scott Michetti
    Scott Michetti avatar
    92 posts
    Member since:
    Feb 2010

    Posted 08 Jun 2010 Link to this post

    Thanks Andrey for the quick response. I'll try that.

    Scott
Back to Top