-
Notifications
You must be signed in to change notification settings - Fork 128
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
Map Snapshots #86
Comments
@MobileAppsGO Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
I would also want this feature. Thanks! |
Quickest is to expose a function in |
any updates on this? |
@recoverrelax you can use Something like:
|
Is this going to be an official feature? It would be very nice to have a map span to base snapshot on, cause CameraPosition is very limited to handle multiple markers with a good framing displaying all markers. |
Can you clarify what you mean by 'It would be very nice to have a map span to base snapshot on'? |
Yes.. I think we should have other options of zoom, since in my case I need to frame multiple markers, and set the snapshot with a zoom that will show every marker wihtout being too far. |
Any update on this? |
I have been using in production the recommend by @arriolac code snippet:
and is working. The downside is that in very rare cases and completely randomly it throws:
maybe because |
We are still waiting for the stable official implementation, correct? |
@petros-chariskos i twas able to fix that NPE by putting that MapEffect behind a callback of "onMapLoaded". It's a parameter for GoogleMap. Try it, I hope it helps. I never seen the NPE ever since. |
thank you @alexandrupele, I am already doing that and still getting the NPE. I can give the code snippet in case there is something wrong with my implementation but I think it's pretty straight forward.
|
Hi! Is this feature still being working on? Or any other way to access the googleMap instance without the use of MapEffect?Thanks! |
Would be awesome to have this feature +1 |
@petros-chariskos try updating to compose maps 4.3.3. I see they've fixed a few things about the phase of the composition at which point the map is rendered. Let me know if it fixes it for you. I've also seen this crash again, now I'm hoping it goes away with the new version. I had 4.3.0 before. |
Thanks @alexandrupele, I have updated the compose maps to 4.3.3 and this release is already in production since a couple of days ago. I hope this solves it, otherwise I will update the thread. |
[Thread update] With |
I still get this crash. Anyone found a solution for it? |
@petros-chariskos check this thread until the end, i think the answer is there: https://issuetracker.google.com/issues/290806747 |
Please add support for taking map snapshots:
GoogleMap::snapshot(@nonnull GoogleMap.SnapshotReadyCallback callback)
The text was updated successfully, but these errors were encountered: