Your company wants to display customer locations as pushpins on a Virtual Earth 6.0 map. You need to ensure that the pushpins are loaded after the Virtual Earth map is loaded.
Which code segment should you use?
A.
function GetMap() { map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(47.22, -122.44), 12, ‘r’, false); map.onLoadMap = function(){…Load the pushpins…}; }
B.
function GetMap() { map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(47.22, -122.44), 12, ‘r’, false); map.AttachEvent (‘oninitmode’, function(){…Load the pushpins…}); }
C.
function GetMap() { map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(47.22, -122.44), 12, ‘r’, false); map.AttachEvent (‘onchangeview’, function(){…Load the pushpins…}); }
D.
function GetMap() { map = new VEMap(‘myMap’); map.onLoadMap = function(){…Load the pushpins…}; map.LoadMap(new VELatLong(47.22, -122.44), 12, ‘r’, false); }