getScreenCoordinate method

Future<MFScreenCoordinate> getScreenCoordinate(
  1. MFLatLng latLng
)

Returns the MFScreenCoordinate for a given viewport LatLng.

Implementation

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