addImageSource method
Future<void>
addImageSource(
- String imageSourceId,
- Uint8List bytes,
- LatLngQuad coordinates
override
Implementation
@override
Future<void> addImageSource(
String imageSourceId, Uint8List bytes, LatLngQuad coordinates) async {
try {
return await _channel
.invokeMethod('style#addImageSource', <String, Object>{
'imageSourceId': imageSourceId,
'bytes': bytes,
'length': bytes.length,
'coordinates': coordinates.toList()
});
} on PlatformException catch (e) {
return Future.error(e);
}
}