Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bailuk/mapsforge-gtk

Mapsforge module for java-gtk
https://github.com/bailuk/mapsforge-gtk

Last synced: 10 days ago
JSON representation

Mapsforge module for java-gtk

Awesome Lists containing this project

README

        

[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](http://www.gnu.org/licenses/lgpl-3.0)
[![Build on ubuntu](https://github.com/bailuk/mapsforge-gtk/actions/workflows/build-on-ubuntu.yml/badge.svg)](https://github.com/bailuk/mapsforge-gtk/actions/workflows/build-on-ubuntu.yml)
[![JitPack](https://jitpack.io/v/bailuk/mapsforge-gtk.svg)](https://jitpack.io/#bailuk/mapsforge-gtk)

# Mapsforge GTK

GTK4 based implementation of the Mapsforge MapView. It is made with [java-gtk](https://github.com/bailuk/java-gtk)

## Screenshot

![Desktop GTK4](doc/screenshot.png)

## Compile and install

```bash
# build
./gradlew mapsforge-map-gtk:build

# install to local maven repository
./gradlew mapsforge-map-gtk:publishToMavenLocal

# run sample
./gradlew mapsforge-map-samples-gtk:run
```

## Integration

Library is available via [JitPack](https://jitpack.io/#bailuk/mapsforge-gtk).
Minimal example application: [mapsforge-samples-gtk/src/main/java/HelloMap.java](mapsforge-samples-gtk/src/main/java/HelloMap.java)

```kotlin
// 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")
}
```