MapViewPosition.zoomOut constructor

MapViewPosition.zoomOut(
  1. MapViewPosition old
)

Implementation

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