package aimax.osm.applications;
import java.util.Locale;
import aimax.osm.data.DataResource;
import aimax.osm.viewer.MapViewFrame;
/**
* Opens a MapViewFrame
and initializes it with a
* map of Ulm, provided that a file with name ulm.osm is found
* in the resource/maps path.
* @author Ruediger Lunde
*/
public class OsmViewerApp {
/**
* Start application with program arg -screenwidth=xx
* (with xx the width in cm)
* or -screensize=yy
(with yy measured diagonally in inch).
*/
public static void main(String[] args) {
// indicates progress when reading large maps (for testing only)
// Logger.getLogger("aimax.osm").setLevel(Level.FINEST);
// Logger.getLogger("").getHandlers()[0].setLevel(Level.FINE);
Locale.setDefault(Locale.US);
MapViewFrame frame = new MapViewFrame(args);
frame.readMap(DataResource.getULMFileResource());
frame.setTitle("OSM Viewer");
frame.setSize(800, 600);
frame.setVisible(true);
}
}