Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.opensciencemap:vtm:'
}
dependencies {
implementation("com.github.opensciencemap:vtm:")
}
<dependency>
<groupId>com.github.opensciencemap</groupId>
<artifactId>vtm</artifactId>
<version></version>
</dependency>
libraryDependencies += "com.github.opensciencemap" % "vtm" % ""
:dependencies [[com.github.opensciencemap/vtm ""]]
Development continues at https://github.com/mapsforge/vtm #<br/> VTM is developed within the OpenScienceMap project.
The libgdx backends for GWT and iOS are very experimental.
git clone --recursive https://github.com/opensciencemap/vtm
Install Android SDK and build-tools 20.0. From extras add 'Android Support Library/Repository' and 'Google Repository'. The commands below should set things up correctly when Android SDK is already installed.
export ANDROID_HOME=/path/to/your/android-sdk
./android-stuff.sh
./gradlew eclipse
<br/>
Import all 'vtm' sub-projects into Eclipse.
Just import build.gradle
You can run gradle tasks directly (see also ./gradlew -q tasks
):<br/>
./gradlew clean install
<br/> to build the libraries and add them to the local maven repository.<br/>
./gradlew :vtm-android-example:run
<br/> to run the android example<br/>
./gradlew :vtm-desktop:run
<br/>to run the desktop demo (only Linux64 and Win64 native libs are provided atm)<br/>
./gradlew :vtm-web-app:jettyDraftWar
<br/>to run the webgl demo<br/>
OpenScienceMap view of Bremen.
This library contains code from several projects: