setStyle method

Future<void> setStyle(
  1. String style
)

Changes the map's visual style.

Supported standard style names: 'th', 'en', 'dark', 'gray'.

Implementation

Future<void> setStyle(String style) async {
  // Delegate to LayerManager so custom layers are preserved across themes
  await layers.setBaseStyle(style);
}