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) {
  var scale = this.scale(zoom);
  var untransformedPoint =
      transformation.untransform(point, scale.toDouble());
  try {
    return projection.unproject(untransformedPoint);
  } catch (e) {
    return null;
  }
}