To determine
any location, you need only these two values. Locations at a latitude of 0 are on the
equator; locations with a latitude of 90 are at the North Pole; and locations with a latitude
of ??“90 are at the South Pole. Locations with a longitude of 0 are either directly north or
directly south of the Royal Observatory in Greenwich (a suburb of London, England),
with negative values being to the west, and positive values being to the east.
If you look at the map shown earlier in Figure 9-1, you will see that it is specified with
a latitude of 48 (48 degrees north of the equator) and a longitude of ??“122 (122 degrees
west of Greenwich, England), which brings you to the Seattle area:
LoadMap(new VELatLong(48, -122), 9 ,'r');
You don??™t have to use whole numbers when specifying longitude and latitude; the latitude/
longitude numbers can be floating-point ???style??? values that provide some
fine-grained control over locations. So, you can quite happily control your location like
this:
LoadMap(new VELatLong(47.7512121212, -122.43234), 9 ,'r');
You can see this in Figure 9-5; notice that the map is now more centered around the
Seattle/Bellevue area.
Pages:
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308