setCenterCoordinate method

void setCenterCoordinate(
  1. CLLocationCoordinate2D coordinate, {
  2. required bool animated,
})

Changes the center coordinate of the map and optionally animates the change.

Changing the center coordinate centers the map on the new coordinate without changing the current zoom level. For animated changes, wait until the map view has finished loading before calling this method.

@param coordinate The new center coordinate for the map. @param animated Specify YES if you want the map view to scroll to the new location or NO if you want the map to display the new location immediately.

Note: The behavior of this method is undefined if called in response to UIApplicationWillTerminateNotification.

Implementation

void setCenterCoordinate(CLLocationCoordinate2D coordinate, {required bool animated}) {
_objc_msgSend_o7hjv2(this.ref.pointer, _sel_setCenterCoordinate_animated_, coordinate, animated);

}