Android Google Maps Color And Style

August 15, 2017
Create greyscale (black & white) or dark night mode map.

Create custom Google Maps style and save the json file to res/raw/map_style.json. You can select existing theme, using Silver for greyscale (black & white) map style, or choose Dark/Night/Aubergine for dark night mode theme.

Call setMapStyle to apply the json map style.

mapFragment.getMapAsync(new OnMapReadyCallback() {
    @Override
    public void onMapReady(final GoogleMap map) {
        // change map styling
        map.setMapStyle(
            MapStyleOptions.loadRawResourceStyle(
                fragment.getActivity(), R.raw.map_style));
    }
});
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.