addImage method
Implementation
@override
Future<void> addImage(String name, Uint8List bytes,
[bool sdf = false]) async {
final photo = decodeImage(bytes)!;
if (!_map.hasImage(name)) {
_map.addImage(
name,
{
'width': photo.width,
'height': photo.height,
'data': photo.getBytes(),
},
{'sdf': sdf},
);
}
}