withNonRotatedSize method

MapCamera withNonRotatedSize(
  1. Point<double> nonRotatedSize
)

Returns a new instance of MapCamera with the given nonRotatedSize.

Implementation

MapCamera withNonRotatedSize(Point<double> nonRotatedSize) {
  if (nonRotatedSize == this.nonRotatedSize) return this;

  return MapCamera(
    crs: crs,
    center: center,
    zoom: zoom,
    rotation: rotation,
    nonRotatedSize: nonRotatedSize,
    minZoom: minZoom,
    maxZoom: maxZoom,
  );
}