addImageSource method

  1. @override
Future<void> addImageSource(
  1. String imageSourceId,
  2. Uint8List bytes,
  3. 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 new Future.error(e);
  }
}