[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add LocationTrackingActivity to example app #146

Merged
merged 10 commits into from
Jun 21, 2022
Merged

Conversation

barbeau
Copy link
Contributor
@barbeau barbeau commented Jun 13, 2022

This PR adds a new activity to the demo app to show how to use LocationSource and enable the "My location" layer. This allows you to move the blue "my location" dot around on the screen based on your own Location objects.

This implementation generates fake locations randomly every 2 seconds and updates the blue dot and animates the map camera accordingly:

location-tracking

We can also use this activity to demo the feature for the source of camera movement (#49) when that is implemented.


Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Copy link
Member
@wangela wangela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for including a gif of the new demo behavior!

# Conflicts:
#	app/src/main/AndroidManifest.xml
#	app/src/main/java/com/google/maps/android/compose/MainActivity.kt
#	app/src/main/res/values/strings.xml
...versus the published artifact

Also trim off "Activity" text on button
@barbeau barbeau merged commit 62d8234 into main Jun 21, 2022
@barbeau barbeau deleted the sean/location-tracking branch June 21, 2022 22:18
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 2.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants