GTK4 based implementation of the Mapsforge MapView. It is made with java-gtk
# build
./gradlew mapsforge-map-gtk:build
# install to local maven repository
./gradlew mapsforge-map-gtk:publishToMavenLocal
# run sample
./gradlew mapsforge-map-samples-gtk:run
Library is available via JitPack.
Minimal example application: mapsforge-samples-gtk/src/main/java/HelloMap.java
// build.gradle.kts
plugins {
application
}
repositories {
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation("com.github.bailuk:mapsforge-gtk:0.4.0")
}
application {
mainClass.set("HelloMap")
}