MapViewPosition.zoom constructor

MapViewPosition.zoom(
  1. MapViewPosition old,
  2. int zoomLevel
)

Implementation

MapViewPosition.zoom(MapViewPosition old, int zoomLevel)
    : _latitude = old._latitude,
      _longitude = old._longitude,
      this.zoomLevel = max(zoomLevel, 0),
      indoorLevel = old.indoorLevel,
      tileSize = old.tileSize,
      scale = 1,
      focalPoint = null {
  _mercatorProjection = MercatorProjectionImpl(old.tileSize, zoomLevel);
}