Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/darrylbayliss/jetpack-compose-for-google-maps-samples
- Owner: DarrylBayliss
- Created: 2024-03-10T22:43:26.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-10T10:40:31.000Z (8 months ago)
- Last Synced: 2024-05-10T11:40:47.084Z (8 months ago)
- Topics: android, google-maps, jetpack-compose, kotlin, sample-code
- Language: Kotlin
- Homepage: https://www.darrylbayliss.net/jetpack-compose-for-maps/
- Size: 35.5 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.