getNewPixelOrigin method

CustomPoint<num> getNewPixelOrigin(
  1. LatLng? center, [
  2. double? zoom
])

Implementation

CustomPoint getNewPixelOrigin(LatLng? center, [double? zoom]) {
  var viewHalf = size! / 2.0;
  return (project(center, zoom) - viewHalf).round();
}