setMapStyle method

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

Set map view details by content.

Parameters

  • IN style Style content.
  • IN smoothTransition Enables a smooth transition between old and new style.

Throws

  • An exception if it fails

Implementation

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