-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat: Add experimental MapEffect composable #140
Conversation
3ab8e80
to
844d3ff
Compare
844d3ff
to
70308e0
Compare
Change-Id: I6612683d4c67d350dd0b66310e98108b564b73e3
70308e0
to
4ccbc2d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @arriolac! Some comments in-line.
While there is certainly demand for this feature and this seems like the most likely near-term fix, I also wonder if this is opening a Pandora's box for all kinds of bugs. There are already known gotchas with AMU and using multiple features simultaneously, and it seems like this is piling on top of those. I do like marking this as experimental, largely for this reason. Any other thoughts on mitigating potentially bad experiences is welcome.
app/src/main/java/com/google/maps/android/compose/MapClusteringActivity.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/google/maps/android/compose/MapClusteringActivity.kt
Outdated
Show resolved
Hide resolved
For what it's worth, I love the idea of this being added in an experimental state for the time being. Since I can't use clustering in android-maps-compose, using this library is a non-starter, (which is a shame because this library already includes a bunch of fixes and stuff I've run into using AndroidVIew + google maps without clustering. see: the lifecycle issue created in the issuetracker when you use AndroidVIew + google maps in a tab bar layout) It seems like knowing that this is a temporary solution would at least allow way more people to adopt this library, and then in the 6months+ it takes to add clustering as a first class citizen we could at least build up to that. of course. im bias because i tore my hair our trying to get androidView + google maps + tabs + clustering to work so i definitely rather use something that makes no promises, but is kinda supported by the maintainers here + community, vs the frankenstein thing I hacked together. lol cheers and thanks for considering |
…gActivity.kt Co-authored-by: Sean Barbeau <sjbarbeau@gmail.com>
Thanks @ColtonIdle for providing color to your use case. I thought of this feature precisely to address the issue you faced—it seems to be a really common workflow based on reports I've seen from the community.
@barbeau this is definitely not a feature that I originally intended on adding (I think we had a convo about why we choose not to expose the raw |
Change-Id: I84922456c00314ab3a622385accd088980fa0695
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @arriolac. I agree that all things considered the best way to move forward at this point is with this as an experimental feature.
This is awesome, thanks @arriolac! Curious about a couple things, not that I am looking for anything specific, just curious.
|
# [2.3.0](v2.2.1...v2.3.0) (2022-06-21) ### Features * Add experimental MapEffect composable ([#140](#140)) ([8ed7eb4](8ed7eb4))
🎉 This PR is included in version 2.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hey @newmanw, thanks for the questions.
|
Create
MapEffect
composable to expose the underlyingGoogleMap
Maps SDK object to enable extension and usages such as clustering with the utility library.Example:
Note: this is an experimental API and requires explicit opt in to
MapsComposeExperimentalApi
.Fixes #135 🦕