pointToLatLng method

LatLng pointToLatLng(
  1. CustomPoint<num> localPoint
)

Implementation

LatLng pointToLatLng(CustomPoint localPoint) {
  final localPointCenterDistance = CustomPoint(
    (_nonrotatedSize.x / 2) - localPoint.x,
    (_nonrotatedSize.y / 2) - localPoint.y,
  );
  final mapCenter = options.crs.latLngToPoint(center, zoom);

  var point = mapCenter - localPointCenterDistance;

  if (rotation != 0.0) {
    point = rotatePoint(mapCenter, point);
  }

  return options.crs.pointToLatLng(point, zoom);
}