pointToLatLng method

  1. @override
LatLng pointToLatLng(
  1. Point<num> point,
  2. double zoom
)
override

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

Implementation

@override
LatLng pointToLatLng(Point point, double zoom) {
  final (x, y) = _getTransformationByZoom(zoom).untransform(
    point.x.toDouble(),
    point.y.toDouble(),
    scale(zoom),
  );
  return projection.unprojectXY(x, y);
}