PrepAway - Latest Free Exam Questions & Answers

Category: 70-544

Exam 70-544: TS: Bing Maps Platform, Application Development

What should you do?

You want to define a route specification for the fastest route in the United Kingdom between a start point, 30 intermediate stops, and an end point. You call the Microsoft MapPoint Web Service method named CalculateSimpleRoute. You also set an array of latitude and longitude values for all the points and stops as the first parameter. You need to set the required parameters for the route specification. What should you do?

Which code segment should you use?

You are creating a Virtual Earth 6.0 application.

A Web page of the application contains the following code segment.

control = document.createElement (“div”);
control.id = ” CustomControl “;

A custom control must be added on top of the map on the Web page.

You need to ensure that the custom control responds only to its own mouse-click events.
Which code segment should you use?

Which code segment should you use?

You are creating a Virtual Earth 6.0 application to be viewed by using Microsoft Internet Explorer. The Web pages of the application contain maps.

The head section of the Web pages contains the following code fragment.

<script type=”text/javascript”>
var map = null;
function GetMap(){
map = new VEMap(‘Map’);
map.LoadMap();
ResizeMap();
}
</script> <style type=”text/css”>
html, body{ overflow:hidden; }
</style>

The body section of the Web pages contains the following code fragment.

<body onload=”GetMap();”>
<div id=’Map’ style=”position:relative; width:400px;
height:400px;”></div>
</body>
You need to resize the maps on the Web pages so that they exactly fit into the dimensions of the available browser area.

Which code segment should you use?

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 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?

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 provides navigational aid to the users.
When the Web page loads, it must meet the following requirements:

The map must appear in the two-dimensional mode.
The users must be able to view the roads on the map and navigate through the map. The users must not be able to change the map to the three-dimensional mode.

You need to ensure that the Web page meets the requirements.

Which code segment should you use?

Which code fragment should you insert at line 03?

You are creating a Virtual Earth 6.0 application. The Web pages of the application contain a header section, a body section, and a map control section.

The body section of the Web pages contains the following code fragment. (Line numbers are included for reference only.)

01 <div id=’Header’ style=”width:400px;
02 height:100px; background-color: red;”></div>
03 …
04 <div id=’Controls’ style=”width:400px;”>
05 <p align=”center”>Search text:
06 <input type=’text’ id=’Where’ />
07 <input type=’button’ id=’Search’ value=’Search’
08 onclick=”Find();” />
09 </p>
10 </div>

You need to ensure that the maps contained on the Web pages fit correctly between the header section and the map control section.

Which code fragment should you insert at line 03?

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?


Page 8 of 9« First...56789