If you have a mouse with a wheel, you can roll the wheel to zoom in and out. You can
see this for the current application in Figure 9-4.
Now that you??™ve gotten a feel for the functionality of the map, you??™ll see some more
of the programmatic features for further controlling the map that are available to application
developers.
CHAPTER 9 ?– AJAX-STYLE MAPPING USING THE VIRTUAL EARTH SDK 214
Figure 9-4. Zooming into the map
In the previous section, you saw how to create a simple page that hosts the VEMap
control, which probably whetted your appetite for some juicy APIs that you can use to
finely control the map. So, without further delay, let??™s explore a few of them.
CHAPTER 9 ?– AJAX-STYLE MAPPING USING THE VIRTUAL EARTH SDK 215
Setting Longitude and Latitude
As you know, places on a map have a latitude and a longitude. Longitude values range
from ??“180 to +180,whereas latitude values range from ??“90 to +90. Using these values, you
can calculate and locate any position in the world. Longitude determines how far east or
west a location is, and latitude determines how far north or south a location is.
Pages:
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307