Skip to content

DarrylBayliss/Jetpack-Compose-For-Google-Maps-Samples

Repository files navigation

Jetpack Compose For Google Maps Samples

A collection of examples showing how to use the Jetpack Compose Components for the Google Maps SDK.

Read the accompanying blog post.

Showing a map containing a single marker

Showing a map containing multiple markers

Customising the window for a selected marker

Creating a cluster of markers

Getting Fine Location Permission using the permissions library from accompianist

Drawing shapes and polygons on the map

Tapping on a marker and showing street view

Animating the map to different markers

Showing the scale bar

Usage

  1. Download the repo and open the project in Android Studio.

  2. In local.properties, add a Google Maps API key to the file. Create the file in the root of the project if needed.

MAPS_API_KEY=yourkeyhere

Follow the instructions on the Maps SDK for Android pages if you need to create an API key.

  1. Build and run the app.

Contributing

Additional samples and bug fixes are welcome. Fork the repo and raise a pull request to make a change.

About

A collection of examples showing how to use the Jetpack Compose Components for the Google Maps SDK

Topics

Resources

Stars

Watchers

Forks

Languages