setMapStyle method
- ContentStoreItem style, {
- 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:
- setMapStyleById - Set style by content ID.
- setMapStyleByPath - Set style by file path.
- setMapStyleByBuffer - Set style from memory buffer.
Implementation
void setMapStyle(
final ContentStoreItem style, {
final bool smoothTransition = false,
}) {
setMapStyleById(style.id, smoothTransition: smoothTransition);
}