
312
|
Chapter 6, Mapping on Your Desktop
#66 Java-Based Desktop Mapping with Openmap
HACK
Runtime Environment (JRE), but since we’re hackers, we’ll install a Java
Software Development Kit (JSDK), so that we can compile Java code in
addition to executing others’ programs. Download and install a JSDK from
java.sun.com, making sure you get Version 1.4 or higher. Then download
Openmap from openmap.bbn.com. While Openmap is open source, it is not
licensed under the GPL, so if this concerns you, be sure to carefully read the
license before downloading. Just make sure to copy the file openmap.proper-
ties from the program’s installation directory into your home directory. This
will be important later, as the primary way to customize the application is by
editing this file.
Make sure everything is going well by running Openmap. If you get some-
thing that looks like Figure 6-21, congratulations on making your first map!
Take a Spin Around Openmap
Unlike a graphics program like Photoshop or Flash, Openmap knows the
real-world location of every pixel on the map. Pass your mouse over the
world and see the geographic (Lat, Lon) and screen (x, y) coordinates dis-
played underneath Antarctica. The first thing you probably want to do is
zoom in on interesting places. Openmap provides a few different ways to
navigate, but we’ll use the simplest to get started. Notice the navigation
Figure 6-21. Starting Openmap