Loading the Enhanced Road Map Style

This documentation is no longer available on MSDN, however it is available as a CHM download.

Gg442264.Important(en-us,MSDN.10).gifImportant:
On July 6, 2011, the new enhanced road map style in use on http://www.bing.com/maps became the default and only road style available for all Bing Maps APIs. You no longer have to load a configuration file as described in this topic.

Load the Configuration File

To opt-in to using the new enhanced road map style, you need to load the configuration file http://dev.virtualearth.net/silverlight/mapcontrol/v1/v1.1_MapControl.xml when you initialize your map control. Use the Load method and make sure to run this code in the XAML code behind file before the InitializeComponent call is made. Example code is shown below.

Public Partial Class MainPage Inherits UserControl
     Public Sub New()

          Microsoft.Maps.MapControl.Core.MapConfiguration.Load(New System.Uri("http://dev.virtualearth.net/silverlight/mapcontrol/v1/v1.1_MapControl.xml"))

          InitializeComponent()

     End Sub
End Class

Show: