Repository navigation
sample(maps-app): follow system theme in LiteModeActivity and add documentation guide - #989
Merged
Merged
Conversation
Contributor
Code Coverage
|
dkhawk
force-pushed
the
sample/dark-mode-lite-map
branch
2 times, most recently
from
September 3, 2026 22:58
19b2df3 to
f8fddaa
Compare
dkhawk
force-pushed
the
sample/dark-mode-lite-map
branch
2 times, most recently
from
September 3, 2026 23:19
3c8c4e9 to
9cab43f
Compare
dkhawk
force-pushed
the
sample/dark-mode-lite-map
branch
from
September 3, 2026 23:23
9cab43f to
3ddfff3
Compare
dkhawk
marked this pull request as ready for review
September 3, 2026 23:25
This was referenced Oct 7, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a guide and sample demonstrating how to configure and use a Lite Mode map that automatically follows the Android system theme and applies custom JSON dark styling.
Background
In Lite Mode, the Google Maps Android SDK serves static pre-rendered tiles and does not support dynamic
MapColorScheme. To display a dark-themed map in Lite Mode, developers should observe the system setting usingisSystemInDarkTheme()and dynamically supply a custom JSON map style viaMapProperties.mapStyleOptions.Changes Included
docs/lite-mode-dark-theme.mddetailing the root cause, step-by-step implementation, and best practices.LiteModeActivity.ktupdated to demonstrate following the system theme dynamically, with user override options and camera animations.LiteModeActivity.ktlinks todocs/lite-mode-dark-theme.md, and the guide links back to the sample via relative path.GoogleMapViewTests.ktasserting option preservation in Lite Mode.