CameraDelta class final
A change to the camera from where it is now, for gestures.
See mln_camera_delta in the
C API reference.
Constructors
- CameraDelta({ScreenPoint? offset, double? scale, double? bearing, double? pitch, ScreenPoint? anchor, GestureMomentum? momentum, AnimationOptions animation = const AnimationOptions(), GesturePhase gesturePhase = const GesturePhase.fromRawValue(0)})
-
const
Properties
- anchor → ScreenPoint?
-
The screen point that
scale,bearing, andpitchkeep in place. It needs one of them, and it combines withoffsetonly in a delta without a duration.final - animation → AnimationOptions
-
final
- bearing → double?
-
Degrees to add to the bearing.
final
- gesturePhase → GesturePhase
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- momentum → GestureMomentum?
-
How the gesture keeps moving after this delta. Only a delta in the
GesturePhase.endphase carries it.final - offset → ScreenPoint?
-
Moves the map's content this far on the screen, as a drag does.
final
- pitch → double?
-
Degrees to add to the pitch.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double?
-
Multiplies the map's scale. 2 zooms in by one level.
final
Methods
-
copyWith(
{ScreenPoint? offset, double? scale, double? bearing, double? pitch, ScreenPoint? anchor, GestureMomentum? momentum, AnimationOptions? animation, GesturePhase? gesturePhase}) → CameraDelta - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited