I have a jetpack compose app with a google map com...
# compose
p
I have a jetpack compose app with a google map composable in a screen. I generated a theme for the app which supports light and dark modes and when my device is in dark mode, the app successfully changes to dark mode, but my google map composable is still being presented in light mode. Is there any way to tell that must use the theme of the app? On the other hand, the google maps app of the OS can switch between light and dark theme normally, so must be a way to achieve it on a Google Map composable, but can't find it on the official documentation.
k
I've done G maps a while back, but from top of my memory, it did not support dark theme, but rather one had to manually switch the style of the map to dark
p
did you remember how did you that? there is not a section for it on the maps for android guide, or at least I can't find it
c
„Styled map“ is the search term you are looking for. https://developers.google.com/maps/documentation/android-sdk/styling
I just typed „Google maps SDK Android dark mode“ and this site was the first search result.