rotateBy method
Rotates by a delta angle in degrees clockwise.
Implementation
MapPosition rotateBy(double rotationDelta) {
final newRotation = Projection.normalizeRotation(_rotation + rotationDelta);
return MapPosition._(
latitude: _latitude,
longitude: _longitude,
zoomlevel: zoomlevel,
indoorLevel: indoorLevel,
rotation: newRotation,
rotationRadian: Projection.degToRadian(newRotation),
scale: scale,
focalPoint: null,
projection: _projection,
center: _center,
);
}