unproject method

  1. @override
LatLng unproject(
  1. UPoint point
)
override

Given a projected coordinate returns the corresponding GeoPosition. The inverse of project.

Implementation

@override
LatLng unproject(UPoint point) {
  double d = 180 / PI;

  return LatLng(
    wrapLat((2 * math.atan(math.exp(point.y / R)) - (PI / 2)) * d),
    wrapLng(point.x * d / R),
  );
}