scaleAround method
Sets the scale around a focal point.
focalPoint
The point to scale around.
scale
The new scale value. Must be greater than 0.
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. Scaling is different from zooming. Scaling is used during pinch-to-zoom gesture to scale the current area. Zooming triggers new tile-images. Scaling does not.
Implementation
MapPosition scaleAround(Offset? focalPoint, double scale) {
assert(scale > 0, 'Scale must be greater than 0');
return MapPosition._(
latitude: _latitude,
longitude: _longitude,
zoomlevel: zoomlevel,
indoorLevel: indoorLevel,
rotation: _rotation,
rotationRadian: _rotationRadian,
scale: scale,
focalPoint: focalPoint,
projection: _projection,
center: _center,
);
}