setMapStyle method

void setMapStyle(
  1. ContentStoreItem style, {
  2. bool smoothTransition = false,
})

Set map view style by content.

Applies a map style from a content store item. Map styles control the visual appearance of the map including colors, fonts, icon sets, and layer visibility. Optionally enable smooth transitions to animate between the old and new styles.

Parameters

  • style: (ContentStoreItem) Style content to apply.
  • smoothTransition: (bool) When true, animates the transition between styles.

See also:

Implementation

void setMapStyle(
  final ContentStoreItem style, {
  final bool smoothTransition = false,
}) {
  setMapStyleById(style.id, smoothTransition: smoothTransition);
}