Description |
MapView is a simple JavaFX 2 control that can render a tile-based map. It offers the following features:
+ zooming in/out
+ dragging
+ centering on double click
+ rendering overlays, such as GPS tracks
![image](images/Screenshot1.png)
It works with map systems based on the Mercator projection, such as [OpenStreetMap](https://openstreetmap.org) or [OpenTopoMap](https://opentopomap.org/).
![image](images/Screenshot2.png)
To get started, look at the example in the code and the
[Javadoc](http://tidalwave.it/projects/mapview/latest/it-tidalwave-mapview-modules/mapview-javafx/apidocs/index.html).
To run the example launch:
```shell
mvn install
mvn -f modules/Example/pom.xml exec:java
```
As an historical note, MapView has been derived by Windrose, an old open source GPS navigation project for Java Mobile developed by the same author between
2006 and 2008 (even though in the end only a few lines of code have been retained).
MapView has been developed because a map viewer is needed by a project of the same author and the existing similar components for JavaFX, at the end of 2024,
seem to be abandoned or not working. If you need a bug fix or an enhancement, requests, contributions such as patches, pull requests etc... are welcomed. |