setCamera method

void setCamera(
  1. MLNMapCamera camera$1, {
  2. required bool animated,
})

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

@param camera The new viewpoint. @param animated Specify YES if you want the map view to animate the change to the new viewpoint or NO if you want the map to display the new viewpoint immediately.

  • TODO: Camera animation: learn how to trigger an animation that rotates around a central point.

Implementation

void setCamera(MLNMapCamera camera$1, {required bool animated}) {
_objc_msgSend_6p7ndb(this.ref.pointer, _sel_setCamera_animated_, camera$1.ref.pointer, animated);

}