pointToLatLng method

  1. @override
  2. @Deprecated('Prefer `controller.camera.pointToLatLng()`. ' 'This method is now accessible via the camera. ' 'This method is deprecated since v6.')
LatLng pointToLatLng(
  1. Point<num> screenPoint
)
override

Convert a screen point (x/y) to its corresponding map coordinate (lat/lng), based on the map's current properties

Implementation

@override
@Deprecated(
  'Prefer `controller.camera.pointToLatLng()`. '
  'This method is now accessible via the camera. '
  'This method is deprecated since v6.',
)
LatLng pointToLatLng(Point<num> screenPoint) =>
    camera.pointToLatLng(screenPoint);