MapViewPosition.move constructor

MapViewPosition.move(
  1. MapViewPosition old,
  2. double _latitude,
  3. double _longitude
)

Implementation

MapViewPosition.move(MapViewPosition old, this._latitude, this._longitude)
    : zoomLevel = old.zoomLevel,
      indoorLevel = old.indoorLevel,
      tileSize = old.tileSize,
      _mercatorProjection = old._mercatorProjection,
      scale = old.scale,
      focalPoint = old.focalPoint,
      assert(_latitude == null || MercatorProjectionImpl.checkLatitude(_latitude)),
      assert(_longitude == null || MercatorProjectionImpl.checkLongitude(_longitude));