mapjfx-demo is a JavaFX application that uses the mapjfx component. It is a showcase application demoing all the features from the library and shows how to use it. It is a standalone application that is built using an FXML file.
The source can be found on GitHub. The current versions are 2.12.0 and 1.31.0 (the version numbers will always be the same as that of the used mapjfx library). 1.x is based on OracleJDK8 and 2.x on OpenJDK13.
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). Make sure you switched to the correct branch for your JDK version (master for JDK12 or master-1.x for JDK8) and then run:
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