The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Map.ZoomLevel Property
May 02, 2013
Gets or sets the zoom level of the map control.
Assembly: Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
ZoomLevel property takes values from 1 to 20, where 1 corresponds to a fully zoomed out map, and higher zoom levels zoom in at a higher resolution.
The following code examples show how you can set the zoom of the map by using the ZoomLevel property in XAML and code.
<!--ContentPanel - place additional content here--> <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0"> <maps:Map x:Name="MyMap" Center="47.6097, -122.3331" ZoomLevel="10"/> </Grid>
public MainPage()
{
InitializeComponent();
Map MyMap = new Map();
//Set the Map center by using Center property
MyMap.Center = new GeoCoordinate(47.6097, -122.3331);
//Set the map zoom by using ZoomLevel property
MyMap.ZoomLevel = 10;
ContentPanel.Children.Add(MyMap);
}