1.
You are creating a Web application. You are given the URL of a Web page. When the URL is encoded with map control properties, it generates custom maps by using the Virtual Earth 6.0 map control.
The Web page uses the following JavaScript code segment to decode the URL.
var pos=location.search.indexOf("?") +1;
var loc1=location.search.substr(pos);
var point1=loc1.split(" & ");
var a= point1[0];
var b= point1[1];
var c= point1[2];
var d=point1[3];
var e= point1[4];
var f= point1[5];
var g= point1[6];
map=new VEMap('myMap');
map.LoadMap(new VELatLong(a,b),c,d,e,f,g);
You need to encode the URL to generate a custom map by using your own settings.
Which encoded URL should you use?
2.
You are creating an application that will display a Virtual Earth 6.0 map inside a pop-up window that will be viewed by using Microsoft Internet Explorer.
You write the following code segment.
01 var map = null;
02 function GetMap(){
03 map = new VEMap('Map');
04 map.LoadMap();
05 ...
06 }
You need to ensure that the following requirements are met:
The height of the map is half the height of the pop-up window. The width of the map is one-third the width of the pop-up window.
Which code segment should you insert at line 05?
3.
You are creating a Virtual Earth 6.0 map. The map displays a pop-up box. You call the ClearInfoBoxStyles method. You need to set the fill color of the pop-up box to yellow.
Which Cascading Style Sheet (CSS) class should you use?