It's the 15th anniversary of Google Maps Platform - Check out the latest news and announcements

Maps Android KTX

Maps Android KTX is a collection of Kotlin extensions for the Maps SDK for Android and the Maps SDK for Android Utility Library. These extensions provide Kotlin language features that enable you to write concise and idiomatic Kotlin when developing for the Maps SDK for Android. Maps KTX is open-sourced and available on GitHub along with examples.

Install KTX for the Maps SDK

To install KTX for the Maps SDK for Android, add the following dependencies to your build.gradle file.

dependencies {
    implementation 'com.google.maps.android:maps-ktx:2.1.1'
}

If you are using the Maps SDK V3 BETA, add the following dependency instead.

dependencies {
    implementation 'com.google.maps.android:maps-v3-ktx:2.1.1'
}

Install KTX for the Utility Library

To install KTX for the Maps SDK for Android Utility Library, add the following dependencies to your build.gradle file.

dependencies {
    implementation 'com.google.maps.android:maps-utils-ktx:2.1.1'

If you are using the Maps SDK V3 BETA, add the following dependency instead.

dependencies {
    implementation 'com.google.maps.android:android-maps-utils-v3:2.1.1'
}