zoom Zoom level used to display the map (ranges from 1-19). The default
zoom level is 4.
style The map rendering style. Possible values are a for aerial, h for hybrid, o
for oblique (bird??™s eye), and r for road. The default style is r.
fixed A boolean value indicating whether or not the map is fixed so that the
user cannot change the selected position of the map. By default, the
map is not fixed.
CHAPTER 9 ?– AJAX-STYLE MAPPING USING THE VIRTUAL EARTH SDK 210
Table 9-1. Continued
Method Name Description
mode A VEMapMode enumeration value that indicates whether to load the map
in 2D or 3D mode. The default mode is 2D.
showSwitch (Optional) A boolean value indicating whether or not to show the map
mode switch on the dashboard control. By default, the map mode
switch is displayed.
The only thing left to do is to call the DisplayMap function somewhere on the page.
You could set this to an event handler for a button or some other control on the page. In
this case, you could simply set it to the onload event of the tag:
And when the page loads, the map is displayed as depicted in Figure 9-2.
Pages:
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303