addLayerBelow method

  1. @override
Future<void> addLayerBelow(
  1. String imageLayerId,
  2. String imageSourceId,
  3. String belowLayerId,
  4. double? minzoom,
  5. double? maxzoom,
)
override

Implementation

@override
Future<void> addLayerBelow(String imageLayerId, String imageSourceId,
    String belowLayerId, double? minzoom, double? maxzoom) async {
  try {
    return await _channel
        .invokeMethod('style#addLayerBelow', <String, dynamic>{
      'imageLayerId': imageLayerId,
      'imageSourceId': imageSourceId,
      'belowLayerId': belowLayerId,
      'minzoom': minzoom,
      'maxzoom': maxzoom
    });
  } on PlatformException catch (e) {
    return new Future.error(e);
  }
}