OpenLR MapViewer

The MapViewer application draws an OpenLR map and provides basic map view functionalities. Additionally the user can select locations in the map and encode them. The location reference can be analyzed and stored. Location references can also be decoded and shown in the map.

Starting the application

The MapViewer application requires Java Version 6 (or above), a map database accessible with the OpenLR map interface and a corresponding map loader implementation (must be found in the class path).

You can use the following command line to start the MapViewer:

java -Xmx512m -cp [class path resources] openlr.mapviewer.MapViewer

The "java" command starts the java virtual machine and launches the application. The "-Xmx512m" option specifies the maximum size of the memory allocation pool. The computer running the application should be equipped with at least 1GB memory. The class path resources must include the map viewer code with all its dependencies, typically this is file mapViewer-[version]-with-dependencies.jar from the OpenLR website. Furthermore at least one OpenLR map loader implementation must be contained. Such is also available on the website. The last command line parameter openlr.mapviewer.MapViewer specifies the main class of the application.