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

Map Navigation Location

2 Answers 94 Views
Map
This is a migrated thread and some comments may be shown as answers.
Scott Michetti
Top achievements
Rank 1
Iron
Scott Michetti asked on 07 Jun 2010, 08:04 PM
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 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Jun 2010, 02:10 PM
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.
0
Scott Michetti
Top achievements
Rank 1
Iron
answered on 08 Jun 2010, 03:05 PM
Thanks Andrey for the quick response. I'll try that.

Scott
Tags
Map
Asked by
Scott Michetti
Top achievements
Rank 1
Iron
Answers by
Andrey
Telerik team
Scott Michetti
Top achievements
Rank 1
Iron
Share this question
or