Skip to content

Change the Map Style

Call setStyle() with a new style URI to switch cartography. The map reloads its layers from the new style.

import org.maplibre.android.maps.Style

mapView.getMapAsync { map ->
    map.setStyle(
        Style.Builder().fromUri("https://styles.maptoolkit.org/dark.json")
    )
}

Swap the slug (summer, light, hiking, winter, dark, street) for the style you want.