Which code segment should you use?

You are creating a browser-based Web application by using Virtual Earth 6.0 map control. A Web page of the application has a map and a list of locations.

When a user selects a location from the list, the application must meet the following requirements:

A default view of the selected location is loaded.
The selected location is centered.
The selected location appears in the three-dimensional mode, at an oblique pitch, and heads due north.

You need to program Virtual Earth map control to ensure that the requirements are met.

Which code segment should you use?

You are creating a browser-based Web application by using Virtual Earth 6.0 map control. A Web page of the application has a map and a list of locations.

When a user selects a location from the list, the application must meet the following requirements:

A default view of the selected location is loaded.
The selected location is centered.
The selected location appears in the three-dimensional mode, at an oblique pitch, and heads due north.

You need to program Virtual Earth map control to ensure that the requirements are met.

Which code segment should you use?

A.
var defView1= new VEMapViewSpecification(new VELatLong(40.68,-74.04), 16, 360, -45, 0); map.SetMapMode(VEMapMode.Mode3D); map.SetMapView(defView1);

B.
var defView1= new VEMapViewSpecification(new VELatLong(40.68,-74.04), 16, 360, 45, 0); map.Loadmap(defView1); map.SetMapMode(VEMapMode.Mode3D);

C.
var defView1= new VEMapViewSpecification(new VELatLongRectangle (40.88,-73.8, 40.48,-74.28), 16, 360, -45, 0); map.SetMapMode(VEMapMode.Mode3D); map.SetMapMode(defView1);

D.
var defView1= new VEMapViewSpecification(new VELatLongRectangle (40.88,-73.8, 40.48, -74.28), 16, 360, 45, 0); map.Loadmap(defView1); map.SetMapMode(VEMapMode.Mode3D);



Leave a Reply 0

Your email address will not be published. Required fields are marked *