addLayer method

  1. @override
Future<void> addLayer(
  1. String imageLayerId,
  2. String imageSourceId
)
override

Implementation

@override
Future<void> addLayer(String imageLayerId, String imageSourceId) async {
  try {
    return await _channel.invokeMethod('style#addLayer', <String, Object>{
      'imageLayerId': imageLayerId,
      'imageSourceId': imageSourceId
    });
  } on PlatformException catch (e) {
    return new Future.error(e);
  }
}