MapCamera constructor
MapCamera({})
Create an instance of MapCamera. The pixelOrigin
, bounds
, and
pixelBounds
may be set if they are known already. Otherwise if left
null they will be calculated lazily when they are used.
Implementation
MapCamera({
required this.crs,
required this.center,
required this.zoom,
required this.rotation,
required this.nonRotatedSize,
this.minZoom,
this.maxZoom,
Point<double>? size,
Bounds<double>? pixelBounds,
LatLngBounds? bounds,
Point<int>? pixelOrigin,
}) : _cameraSize = size,
_pixelBounds = pixelBounds,
_bounds = bounds,
_pixelOrigin = pixelOrigin;