offsetToLatLng method

  1. @override
LatLng offsetToLatLng(
  1. Offset point,
  2. double zoom
)
inherited

Converts a map point to the sphere coordinate (at a certain zoom).

Implementation

@override
LatLng offsetToLatLng(Offset point, double zoom) {
  final (x, y) = _transformation.untransform(
    point.dx,
    point.dy,
    scale(zoom),
  );
  return projection.unprojectXY(x, y);
}