setMapStyleByBuffer method
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:
- setMapStyleByPath - Set style from file path.
- setMapStyleById - Set style by ID.
Implementation
void setMapStyleByBuffer(
final Uint8List buffer, {
final bool smoothTransition = false,
}) {
objectMethod(
_pointerId,
'MapViewPreferences',
'setMapStyleByBuffer',
args: <String, Object>{
'content': buffer,
'smoothTransition': smoothTransition,
},
dependencyId: _mapPointerId,
);
}