MapViewPosition.zoomInAround constructor

MapViewPosition.zoomInAround(
  1. MapViewPosition old,
  2. double latitude,
  3. double longitude
)

Implementation

MapViewPosition.zoomInAround(MapViewPosition old, double latitude, double longitude)
    : _latitude = latitude,
      _longitude = longitude,
      zoomLevel = old.zoomLevel + 1,
      indoorLevel = old.indoorLevel,
      tileSize = old.tileSize,
      scale = 1,
      focalPoint = null {
  _mercatorProjection = MercatorProjectionImpl(old.tileSize, zoomLevel);
}