Provide a method to know if the map failed to load
Is your feature request related to a problem? Please describe. Referencing the sample app, if you fail to provide an API key it will show a loading indicator forever. It would be good to provide a callback for if the map failed to load so that an error could be displayed.
Describe the solution you'd like
Another callback could be provided for onMapError {}
Describe alternatives you've considered
Alternatively, onMapLoaded could return if it was successful in loading or not
@bentrengrove Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:
- Support Console - If you have a support contract.
- Discord - chat with other developers
-
StackOverflow - use the
google-mapstag - Google Maps Platform issue trackers
This is an automated message, feel free to ignore.
@bentrengrove Please take a moment to fill out this short survey. Thank you!
This is an automated message, feel free to ignore.
This is a limitation in the underlying SDK which does not have a mechanism to report initialization failures via callback. There is OnMapsSdkInitializedCallback but it's primarily for the renderer and assumes a valid API key. Let's keep this open to track how this limitation impacts Maps Compose.
This issue has been automatically marked as stale because it has not had recent activity. Please comment here if it is still valid so that we can reprioritize. Thank you!
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.