Skip to content

Repository files navigation

GLMap Android demo

One compact Kotlin app demonstrates the GLMap 2.0 API. The catalog mirrors the iOS demo and groups each example by feature: map display, camera, draw objects, vector data, search, routing, and offline data.

The Demo Mode button above the catalog runs the same automatic SDK tour as the iOS app. The individual catalog screens remain the compact API examples to learn from.

Run

  1. Create an API key at https://user.globus.software/apps/.
  2. Replace YOUR_API_KEY in kotlinDemo/src/main/res/values/strings.xml locally. Do not commit a real key.
  3. Open this directory in Android Studio and run kotlinDemo.

To build against the GLMap sources in the parent repository:

./gradlew :kotlinDemo:assembleDebug -PuseLocalGLMap=true

Without useLocalGLMap, Gradle resolves the published globus:glmap, globus:glsearch, and globus:glroute artifacts for the version declared in build.gradle.

The demo targets Android SDK 37. Most screens construct their UI in Kotlin so the GLMap calls stay visible in one short feature file under kotlinDemo/src/main/java/globus/demo.

API documentation: https://globus.software/docs

Releases

Used by

Contributors

Languages