removePolygon method

Future<void> removePolygon(
  1. String polygonId
)

Remove a polygon from the map

Implementation

Future<void> removePolygon(String polygonId) async {
  try {
    await _channel.invokeMethod('removePolygon', {'polygonId': polygonId});
  } catch (e) {
    debugPrint('Error removing polygon: $e');
  }
}