setMapStyleByBuffer method

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

Set map view style by content buffer.

Applies a map style loaded into memory as a byte buffer. This is useful for dynamically generated styles or styles loaded from network sources. Optionally enable smooth transitions to animate between styles.

Parameters

  • buffer: (Uint8List) Content buffer containing the style data.
  • smoothTransition: (bool) When true, animates the transition between styles.

See also:

Implementation

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