Which code segment should you use?

You are creating a Web application by using the Virtual Earth 6.0 map control. A Web page of the application loads two map controls named Map1 and Map2. Map1 displays a navigable, primary map. Map2 is the secondary instance of Map1 and displays an overview of the primary map. You need to ensure that when the user navigates the primary map, the overview is automatically updated. Which code segment should you use?

You are creating a Web application by using the Virtual Earth 6.0 map control. A Web page of the application loads two map controls named Map1 and Map2. Map1 displays a navigable, primary map. Map2 is the secondary instance of Map1 and displays an overview of the primary map. You need to ensure that when the user navigates the primary map, the overview is automatically updated. Which code segment should you use?

A.
Map1 = new VEMap(‘myMap’); Map1.LoadMap(); Map1.SetMapView(defView1); Map1.AttachEvent(“onresize”, UpdateOverview);

B.
Map2 = new VEMap(‘myMap’); Map2.LoadMap(); Map2.SetMapView(defView1);
Map2.AttachEvent(“onresize”, UpdateOverview);

C.
Map1 = new VEMap(‘myMap’); Map1.LoadMap(); Map1.SetMapView(defView1); Map1.AttachEvent(“onchangeview”, UpdateOverview);

D.
Map2 = new VEMap(‘myMap’); Map2.LoadMap(); Map2.SetMapView(defView1); Map2.AttachEvent(“onchangeview”, UpdateOverview);



Leave a Reply 0

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