How to enable black mode in Google Maps in iOS

Issue #246

Use GMSMapStyle https://developers.google.com/maps/documentation/android-sdk/styling
Export styling json from https://mapstyle.withgoogle.com/

1
2
let mapStyleUrl = Bundle.main.url(forResource: "mapStyle", withExtension: "json")!
mapView.mapStyle = try? GMSMapStyle(contentsOfFileURL: mapStyleUrl)

To change overall color, search for mostly "elementType": "geometry" and "featureType": "water"

1
2
3
4
5
6
7
8
{
"elementType": "geometry",
"stylers": [
{
"color": "#424242"
}
]
}
1
2
3
4
5
6
7
8
9
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
"color": "#2E2E2E"
}
]
}