Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/darrylbayliss/jetpack-compose-for-google-maps-samples

A collection of examples showing how to use the Jetpack Compose Components for the Google Maps SDK
https://github.com/darrylbayliss/jetpack-compose-for-google-maps-samples

android google-maps jetpack-compose kotlin sample-code

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Jetpack Compose For Google Maps Samples



A collection of examples showing how to use the [Jetpack Compose Components](https://github.com/googlemaps/android-maps-compose) for the Google Maps SDK.

Read the accompanying [blog post](https://www.darrylbayliss.net/jetpack-compose-for-maps/).

## 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](https://developers.google.com/maps/documentation/android-sdk/get-api-key) pages if you need to create an API key.

3. 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.