
Java-Based Desktop Mapping with Openmap #66
Chapter 6, Mapping on Your Desktop
|
313
HACK
compass in the top left corner of the window. Click on the magnifying glass
with the
+ in the middle to zoom in, and the one with the - to zoom out.
Click on the arrows to move laterally in a given direction. You can also
zoom to “bookmarked” places on the map that appear in the Layer menu.
Right now, there is only one item, “World.” We’re going to add a new one
so that our map opens to the United States.
Quit the program and open a copy of openmap.properties in your home direc-
tory using your favorite text editor. Search for
gotoMenu.views=. There should
be a number of commented-out lines that define three bookmarks for Argen-
tina, India, and the United States. Uncomment these now. This will reveal
the bookmarks in Openmap, so save your work, start the program again, and
use these new menu items to quickly zoom in on the United States.
The next feature we’ll reveal is the wealth of data that comes with the pro-
gram. From the Layers menu, select “World Cities.” The map should now
look like it has the measles, covered with little red dots. We can do better
than this, though. Choose “Edit Layers…” from the Layers menu. In the dia-
log box that appears, scroll down to find “World Cities” and click on the
legend icon, which sits between the light bulb and the layer name. In the
new dialog box, check “Show Location ...