You are creating a Web application by using the Virtual Earth 6.0 map control.
A Web page of the application loads a map of a predefined location by using the following code segment.
var map = null;
var defView1= new VEMapViewSpecification(new
VELatLong(40.689167,-74.04472), 16, 360, -45, 0);
function GetMap(){
map = new VEMap(‘myMap’);
map.LoadMap(); map.SetMapView(defView1);
map.SetMapStyle(‘h’)
map.SetMapMode(VEMapMode.Mode3D);
}
You need to display a zoomed out view of the main map in a separate control on the same Web page.
Which code segment should you use?
A.
map.ShowMiniMap(50, 300);
B.
map2=new VEMap(‘myOverViewMap’); defView1=map.GetMapView(); var zL=map.GetZoomLevel(); map2.LoadMap(); map2.SetMapView(defView1); zL=zL-6; map2.SetZoomLevel(zL);
C.
map2=new VEMap(‘myOverViewMap’); defView1=map.GetMapView(); var zL=map.GetZoomLevel(); map.ShowControl(‘myOverViewMap’); map2.SetMapView(defView1); zL=zL-6; map2.SetZoomLevel(zL);
D.
map2= map.ShowMiniMap(50, 300); defView1=map.GetMapView(); var zL=map.GetZoomLevel(); map2.LoadMap(); map2.SetMapView(defView1); zL=zL-6; map2.SetZoomLevel(zL);