0Pricing
Android Academy · Lesson

Showing a Map

Add Google Maps to your app.

Putting Your App on the Map

Maps turn raw coordinates into something users can see and explore. In this lesson you'll add an interactive Google Map to a Jetpack Compose screen using the official maps-compose library.

By the end you'll be able to drop a real, pannable, zoomable map into any composable. Let's get the building blocks in place.

The Maps Compose Library

Google ships a Compose-friendly wrapper called maps-compose. It exposes a GoogleMap composable so you never touch the old XML MapView directly.

Add these dependencies to your module's build.gradle.kts. The play-services-maps artifact is the underlying SDK; maps-compose adapts it for Compose.

// build.gradle.kts (module)
dependencies {
    implementation("com.google.maps.android:maps-compose:6.1.0")
    implementation("com.google.android.gms:play-services-maps:19.0.0")
}

All lessons in this course

  1. Showing a Map
  2. Getting the User Location
  3. Markers and Camera
  4. Location Permissions Done Right
← Back to Android Academy