setCamera$1 method

void setCamera$1(
  1. MLNMapCamera camera$1, {
  2. required double withDuration,
  3. CAMediaTimingFunction? animationTimingFunction,
})

Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function. For animated changes, wait until the map view has finished loading before calling this method.

@param camera The new viewpoint. @param duration The amount of time, measured in seconds, that the transition animation should take. Specify 0 to jump to the new viewpoint instantaneously. @param function A timing function used for the animation. Set this parameter to nil for a transition that matches most system animations. If the duration is 0, this parameter is ignored.

  • TODO: Camera animation: learn how to create a timed animation that rotates around a central point for a specific duration.

Implementation

void setCamera$1(MLNMapCamera camera$1, {required double withDuration,CAMediaTimingFunction? animationTimingFunction}) {
_objc_msgSend_r1s65y(this.ref.pointer, _sel_setCamera_withDuration_animationTimingFunction_, camera$1.ref.pointer, withDuration, animationTimingFunction?.ref.pointer ?? ffi.nullptr);

}