getLatLng method

Future<MFLatLng> getLatLng(
  1. MFScreenCoordinate screenCoordinate
)

Returns the LatLng for a screenCoordinate (in pixels) of the viewport.

Implementation

Future<MFLatLng> getLatLng(MFScreenCoordinate screenCoordinate) async {
  final List<dynamic> latLng = (await _channel.invokeListMethod<dynamic>(
      'map#getLatLng',
      <String, dynamic>{'coordinate': screenCoordinate.toJson()}))!;
  return MFLatLng.fromJson(latLng)!;
}