toLatLng method

Future<LatLng> toLatLng(
  1. Point<num> screenLocation
)

Returns the geographic location (as LatLng) that corresponds to a point on the screen. The screen location is specified in screen pixels (not display pixels) relative to the top left of the map (not the top left of the whole screen).

Implementation

Future<LatLng> toLatLng(Point screenLocation) async {
  return _mapboxGlPlatform.toLatLng(screenLocation);
}