setMapStyleByBuffer method

void setMapStyleByBuffer(
  1. Uint8List buffer, {
  2. bool smoothTransition = false,
})

Set map view style by content buffer

Parameters

  • IN buffer Content buffer.
  • IN smoothTransition Enables a smooth transition between old and new style.

Throws

  • An exception if it fails

Implementation

void setMapStyleByBuffer(
  final Uint8List buffer, {
  final bool smoothTransition = false,
}) {
  objectMethod(
    _pointerId,
    'MapViewPreferences',
    'setMapStyleByBuffer',
    args: <String, Object>{
      'content': buffer,
      'smoothTransition': smoothTransition,
    },
  );
}