var pos=location.search.indexOf("?

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?

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?

A.
http: //www.mymappingsite.com/mymappage.aspx?40.689167&-74.04472&0&h&1&6&1

B.
http: //www.mymappingsite.com/mymappage.aspx?40.689167&-74.04472&12&r&0&2&1

C.
http: //www.mymappingsite.com/mymappage.aspx?40.689167&-74.04472&1&a%&0&14&0

D.
http://www.mymappingsite.com/mymappage.aspx?a=40.689167&-b=74.04472&c=21&d=o&e=0&f=2&g=0



Leave a Reply 0

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