getCircleLatLng method

Future<LatLng> getCircleLatLng(
  1. Circle circle
)

Retrieves the current position of the circle. This may be different from the value of circle.options.geometry if the circle is draggable. In that case this method provides the circle's actual position, and circle.options.geometry the last programmatically set position.

Implementation

Future<LatLng> getCircleLatLng(Circle circle) async {
  assert(_circles[circle.id] == circle);
  final circleLatLng =
      await MapboxFlutterPlatfom.getInstance(_id).getCircleLatLng(circle);
  notifyListeners();
  return circleLatLng;
}