moveTo abstract method

void moveTo(
  1. Camera camera,
  2. int duration,
  3. AnimationType animationType,
  4. CameraCallback callback,
)

@brief Moves the map camera to a new position with a smooth pan-and-zoom animation. @param camera The new camera position @see Camera "Camera". @param duration Animation duration in milliseconds (-1 for default duration). @param animationType The type of easing animation @see AnimationType "AnimationType". @param callback Callback to execute when the animation completes @see CameraCallback "CameraCallback".

Dart code snippet: @snippet location_window_camera_example.dart dart_LocationWindow_moveTo

Implementation

void moveTo(Camera camera, int duration, AnimationType animationType, CameraCallback callback);