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)); }});