setTargetCoordinate$1 method
- CLLocationCoordinate2D targetCoordinate$1, {
- required bool animated,
- ObjCBlock<
Void Function()> ? completionHandler,
Sets the geographic coordinate that is the subject of observation as the user location is being tracked, with an optional transition animation and completion handler.
By default, the target coordinate is set to an invalid coordinate, indicating that there is no target. In course tracking mode, the target forms one of two foci in the viewport, the other being the user location annotation. Typically, the target is set to a destination or waypoint in a real-time navigation scene. As the user annotation moves toward the target, the map automatically zooms in to fit both foci optimally within the viewport.
This method has no effect if the userTrackingMode property is set to a value
other than MLNUserTrackingMode/MLNUserTrackingModeFollowWithCourse.
@param targetCoordinate The target coordinate to fit within the viewport.
@param animated If YES, the map animates to fit the target within the map
view. If NO, the map fits the target instantaneously.
@param completion The block executed after the animation finishes.
Implementation
void setTargetCoordinate$1(CLLocationCoordinate2D targetCoordinate$1, {required bool animated,objc.ObjCBlock<ffi.Void Function()>? completionHandler}) {
_objc_msgSend_1pbhom5(this.ref.pointer, _sel_setTargetCoordinate_animated_completionHandler_, targetCoordinate$1, animated, completionHandler?.ref.pointer ?? ffi.nullptr);
}