getPixelBounds method

Bounds<num> getPixelBounds(
  1. double zoom
)

Implementation

Bounds getPixelBounds(double zoom) {
  var mapZoom = zoom;
  var scale = getZoomScale(mapZoom, zoom);
  var pixelCenter = project(center, zoom).floor();
  var halfSize = size / (scale * 2);
  return Bounds(pixelCenter - halfSize, pixelCenter + halfSize);
}