At the
time of this writing, four types are available:
Road(r): This gives the typical road-type map. All the examples used so far in this
chapter use this type.
Aerial(a): This gives you a photograph of the location from above.
Hybrid(h): This gives you a combination of the previous two??”an aerial photograph
of the location with roads, names, and locations superimposed on it.
Bird??™s Eye(o): This gives you a much closer and clearer aerial shot of the location.
These images were acquired via an actual flying airplane.
You set the map style type using the style parameter of the LoadMap method. In all the
previous sections of this chapter, this attribute was set to r for Road, and as such, all the
maps so far in this chapter have been road maps. Hybrid and aerial maps can be a little
slower to load due to the extra processing required, but the load times are still quite reasonable.
Specifying a map as a hybrid is equally simple and straightforward. Here??™s the
script:
LoadMap(new VELatLong(47.7512121212, -122.43234), 9 ,'h');
You can see the results in Figure 9-7.
Pages:
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310