-
Notifications
You must be signed in to change notification settings - Fork 139
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
StreetView Composable crashes with some locations #265
Comments
If you would like to upvote the priority of this issue, please comment below or react with 👍 so we can see what is popular when we triage.@moallemi Thank you for opening this issue. 🙏
This is an automated message, feel free to ignore. |
Same issue. I'm getting same exception where there is no street details. I am looking forward to this issue being fixed. |
I've just tried StreetView. Works great but I won't use it until we can at least know if we can display the StreetView at a given location. I'll monitor this issue :) |
@StephenVinouze You can check the availability with streetview REST API for now |
The example given crashes (googlemaps#265). Changed location to match BasicMapActivity.kt, which works.
The example given crashes (googlemaps#265). Changed location to match BasicMapActivity.kt, which works.
Hi folks, @kikoso has drafted a PR for a new utility in android-maps-utils that does the work of checking whether a Street View panorama exists at the desired location, so you can call that first and only request a Street View panorama if one exists. Take a look at the issue and associated PR to comment on whether that would help in handling locations where Street View is not available. |
The Street View metadata util is now available in To resolve this bug, add a step to the Street View composable implementation to use the StreetViewUtil before requesting a panorama. |
Will there be a change in android-maps-compose to avoid the crash? Or show us how to catch the exception? |
Hi @lawm . I am leaning towards checking this from the App Level, and checking that the initial coordinate is a valid one. We will PR a solution for this soon, now that the Street View library has released a function to fix this. |
I agree wtih @kikoso's recommendation to leave the metadata check to the developer, so we keep the Compose library true to the scope of the Maps SDK and do not force high-volume, latency-inducing metadata checks in use cases where the developer is confident that the panoramas exist. |
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Please make sure you have |
Hi @wangela. We wanna restrict |
I already opened a pr for this: googlemaps/android-maps-utils#1262 |
@kikoso Hey all! i have used package flutter_google_street_view: ^3.1.4 for street view in my app, but my app getting crashes everytime by giving below error in console Does anyone have solution for this? |
@yogeshButani, this thread is for android-maps-compose. Could you report this issue in the correct repository instead? Also, please refrain from tagging everyone in the thread, as it violates basic netiquette. Thanks! |
Environment details
Steps to reproduce
latitude=32.429634, longitude=-96.828891
Code example
The fast path to reproduce: Change current singapore
to
and run the sample app and navigate to Street View from Main Activity
Stack trace
Following these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: