Android Google Maps Color And Style

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

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.