mapjfx-demo is a JavaFX8 application that uses the mapjfx component. It replaces the showcase application that was contained in the first releases of mapjfx with a standalone application that is built using an FXML file.
The source can be found on GitHub. The current version is 1.16.0 (the version number will always be the same than that of the used mapjfx library).
The following sections describe how the program uses the mapjfx component, how it is incorporated and set up and shows screenshots and sample code.
building and running the demo application
You need to have git to check out the sources, Java JDK and maven to build and run the program.
After cloning the project from GitHub, change into the project directory (assuming this is mapjfx-demo):
cd mapjfx-demo mvn package cd target/mapjfx-demo ./bin/mapjfx-demo
The maven command builds the demo program and creates a directory
target/mapjfx-demo which contains startup-scripts and the necessary libraries. On Windows, use the command:
This starts the program:
…continued on the next page