removeFeatureLayer method

Future<void> removeFeatureLayer(
  1. AbstractAGMLFeatureLayer layer
)

Implementation

Future<void> removeFeatureLayer(AbstractAGMLFeatureLayer layer) async {
  const method = '/removeFeatureLayer';

  try {
    final channelResponse = await _channel.invokeMethod(method, layer.id) as String;
    onRemoveFeatureChannelResponse(layer, channelResponse);
  } on PlatformException catch (e) {
    if(kDebugMode) print(e);
  }
}