-
Notifications
You must be signed in to change notification settings - Fork 131
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 Color Scheme not working on first app launch #597
Comments
Hi @RyeGordo . This is an underlying issue on the version 19.0.0 of the Play Services SDK, and eventually due to the new renderer. We had similar issues with the AdvancedMarkers. |
Thanks for the quick feedback. |
Correct. Although annoying, this seems to happen when the app starts for the first time (probably due to some internal flag initialization in the SDK). On subsequent starts the problem disappears. |
I have filled a bug on the issue tracker: https://issuetracker.google.com/issues/351858982 |
Thanks. I gave it a +1. Hopefully we get a response soon. |
Any progress on this? There's a request for demo sample code on the Maps SDK issue (https://issuetracker.google.com/issues/351858982) |
Hi @RyeGordo , The team was able to reproduce it, I passed them a sample: https://github.com/googlemaps-samples/android-samples/blob/main/ApiDemos/java/app/src/gms/java/com/example/mapdemo/MapColorSchemeActivity.java |
For the record: the Maps Team has answered. This is a temporary behavior that will be deactivated at some point: |
The Map color scheme added in version
6.0.0
does not work when the app is first launched.If
mapColorScheme
is set toComposeMapColorScheme.DARK
orComposeMapColorScheme.FOLLOW_SYSTEM
with the system OS in Dark Mode, the Google Map will render asComposeMapColorScheme.LIGHT
when the app is first launched (after app install or clearing app data).Dynamic changes to to
mapColorScheme
are ignored, and the Google Map continue to display inComposeMapColorScheme.LIGHT
See DynamicMapTheme.zip for sample app with implementation of button selection to change the colour scheme.
(You will need to generate an API key)
The Google Map will behave correctly after killing the app and restarting
DARK
colour scheme is respectedEnvironment details
API 34
Kotlin 2.0
Java 21
com.google.maps.android:maps-compose:6.0.0
Steps to reproduce
ComposeMapColorScheme.DARK
is not respectedComposeMapColorScheme.DARK
is displayed correctlyCode example
See DynamicMapTheme.zip for sample app with implementation of button selection for dynamic colour scheme.
(You will need to generate an API key)
The text was updated successfully, but these errors were encountered: