pointToLatLng method

LatLng? pointToLatLng(
  1. CustomPoint<num> point,
  2. double zoom
)

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

Implementation

LatLng? pointToLatLng(CustomPoint point, double zoom) {
  final scale = this.scale(zoom);
  final untransformedPoint =
      transformation.untransform(point, scale.toDouble());
  try {
    return projection.unproject(untransformedPoint);
  } catch (e) {
    return null;
  }
}