Controlling the Map
You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.
After you have a map on your Web page, you can programmatically change the map. You can change the map style, adjust the zoom level, pan the map to a new location, show and hide the default navigation control, and add your own controls to the map.
Changing the Map View
There are several ways you can programmatically change the map view. You can:
Zoom the map in or out by calling the VEMap.ZoomIn Method and VEMap.ZoomOut Method.
Zoom to a specific level by calling the VEMap.SetZoomLevel Method.
Set the center of the map by calling the VEMap.SetCenter Method, or set the center of the map and zoom in by calling the VEMap.SetCenterAndZoom Method.
Change the map style by calling the VEMap.SetMapStyle Method.
Let Bing Maps determine the best map to show, based on your set of points, pushpins, or polylines. You accomplish this by passing an array of points or lines to the VEMap.SetMapView Method.
Showing and Hiding Controls
You can show and hide the default map navigation control by calling the VEMap.HideDashboard Method and VEMap.ShowDashboard Method. You can also create your own map navigation control in HTML, and then add the control to the map by calling the VEMap.AddControl Method.