A composable providing a 3D globe, where you can place markers. Use the compose animations API to create smooth and performant interactions.
🚧: This library is still work in-progress, API may still change at any point.
The globe asset files are created using globe-mesh-builder, which in-turn consumes that from Natural Earth
You find examples in the GlobePreview.kt
or by launching the sample app.
- Add jitpack as a repository.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = URI("https://jitpack.io") }
}
}
- Add globe-android as a dependency.
implementation("com.github.mullvad:globe-android:main-SNAPSHOT")