Note March 2022: I started mapjfx in December 2014 as a side project. In these seven years I learned quite some things by developing and maintaining it. But my focus has shifted and I don’t have the time anymore to take care of this project. So from March 2022 on, mapjfx will be out of maintenance. I’ll do no further development on it.
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 is 3.1.0 (the version numbers will always be the same as that of the used mapjfx library) and is based on JDK17.
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 (main for JDK15 or main-2.x for JDK11) 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