OpenGL vector map library - running on Android, iOS, Desktop and browser.


Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			maven { url '' }

Add it in your build.sbt at the end of resolvers:

    resolvers += "jitpack" at ""

Add it in your project.clj at the end of repositories:

    :repositories [["jitpack" ""]]
	dependencies {
		implementation 'com.github.mapsforge:vtm:0.14.0'

    libraryDependencies += "com.github.mapsforge" % "vtm" % "0.14.0"

    :dependencies [[com.github.mapsforge/vtm "0.14.0"]]


Maven Central Build Status License: LGPL v3


VTM (Vector Tile Map) was developed within the OpenScienceMap project.

This fork continues VTM development and provides compatibility with Mapsforge.

See the integration guide and changelog. And read through how to contribute guidelines.

If you have any questions or problems, don't hesitate to ask our public forum for help.


  • Java map library
  • OpenGL vector-tile rendering
  • Themeable vector layers (render themes)
  • Support for multiple tile sources:
    • OpenScienceMap vector tiles
    • Mapsforge vector maps
    • MBTiles vector & raster maps
    • Mapbox vector tiles (e.g. Mapilion, Mapzen, Nextzen, OpenMapTiles)
    • GeoJSON vector tiles (e.g. Mapzen, Nextzen)
    • Raster tiles: any quadtree-scheme tiles as texture
  • Backends:


  • vtm core library
  • vtm-android Android backend
  • vtm-android-example Android examples
  • vtm-gdx common libGDX backend
  • vtm-android-gdx Android libGDX backend
  • vtm-desktop Desktop libGDX backend
  • vtm-desktop-lwjgl Desktop LWJGL backend
  • vtm-desktop-lwjgl3 Desktop LWJGL 3 backend
  • vtm-playground Desktop examples
  • vtm-ios iOS libGDX backend
  • vtm-ios-example iOS examples
  • vtm-web HTML5/GWT libGDX backend
  • vtm-web-app HTML5/GWT application

WebGL Demo

OpenScienceMap view of Bremen.

  • Hold right mouse button to change view direction.




This library contains code from several projects:

  • Android (Apache 2.0): some Matrix code, TimSort (
  • libGDX (Apache 2.0): AsyncTask, MathUtils, Interpolation, PixmapPacker (
  • mapsforge (LGPL3): based on 0.2.4 (
  • osmdroid (Apache 2.0): some overlay classes (
  • tessellate (SGI Free Software License B 2.0): (


VTM library is under LGPL v3 license, with an important simplification: the constraints mentioned in sections LGPL v3 §4(d) and §4(e) are waived.

This means that you are allowed to convey a Combined Work without providing the user any way to recombine or relink the application and without providing any shared library mechanism.

In other words, you are allowed to include VTM library in your Android application, without making your application open source.


| Android | iOS | | ------------- | ------------- | |||

| Desktop | | ------------- | |Desktop|

| Browser | | ------------- | |Browser|