android-maps-compose icon indicating copy to clipboard operation
android-maps-compose copied to clipboard

Provide a method to know if the map failed to load

Open bentrengrove opened this issue 3 years ago • 4 comments

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 avatar Mar 01 '22 00:03 bentrengrove

@bentrengrove Thank you for opening this issue. 🙏 Please check out these other resources that might be applicable:

This is an automated message, feel free to ignore.

jpoehnelt avatar Mar 01 '22 00:03 jpoehnelt

@bentrengrove Please take a moment to fill out this short survey. Thank you!

This is an automated message, feel free to ignore.

jpoehnelt avatar Mar 01 '22 00:03 jpoehnelt

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.

arriolac avatar Mar 01 '22 00:03 arriolac

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!

stale[bot] avatar Jul 10 '22 11:07 stale[bot]

Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.

stale[bot] avatar Jun 18 '23 13:06 stale[bot]