From 76eeb6c67639a8815773d1fbc09063416bec204c Mon Sep 17 00:00:00 2001 From: "jgessinger@aeins.de" Date: Tue, 19 May 2026 17:02:20 +0200 Subject: [PATCH] feat(android): Set mapColorScheme to MapColorScheme.FOLLOW_SYSTEM --- .../java/com/capacitorjs/plugins/googlemaps/GoogleMapConfig.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/android/src/main/java/com/capacitorjs/plugins/googlemaps/GoogleMapConfig.kt b/plugin/android/src/main/java/com/capacitorjs/plugins/googlemaps/GoogleMapConfig.kt index 696380c4..45dff5f2 100644 --- a/plugin/android/src/main/java/com/capacitorjs/plugins/googlemaps/GoogleMapConfig.kt +++ b/plugin/android/src/main/java/com/capacitorjs/plugins/googlemaps/GoogleMapConfig.kt @@ -4,6 +4,7 @@ import com.google.android.gms.maps.GoogleMapOptions import com.google.android.gms.maps.model.CameraPosition import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.LatLngBounds +import com.google.android.gms.maps.model.MapColorScheme import org.json.JSONObject class GoogleMapConfig(fromJSONObject: JSONObject) { @@ -118,6 +119,8 @@ class GoogleMapConfig(fromJSONObject: JSONObject) { if (mapId != null) { googleMapOptions?.mapId(mapId!!) } + + googleMapOptions?.mapColorScheme(MapColorScheme.FOLLOW_SYSTEM) } }