MapViewPosition.scale constructor

MapViewPosition.scale(
  1. MapViewPosition old,
  2. Mappoint focalPoint,
  3. double scale
)

sets the new scale relative to the current zoomlevel. A scale of 1 means no action, 0..1 means zoom-out (you will see more area on screen since at pinch-to-zoom the fingers are moved towards each other)

1 means zoom-in.

Implementation

MapViewPosition.scale(MapViewPosition old, this.focalPoint, this.scale)
    : assert(scale != null),
      assert(scale > 0),
      _latitude = old._latitude,
      _longitude = old._longitude,
      this.zoomLevel = old.zoomLevel,
      indoorLevel = old.indoorLevel,
      tileSize = old.tileSize,
      _mercatorProjection = old._mercatorProjection;