targetCoordinate property

CLLocationCoordinate2D get targetCoordinate

The geographic coordinate that is the subject of observation as the user location is being tracked.

By default, this property 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, this property 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 property has no effect if the userTrackingMode property is set to a value other than MLNUserTrackingMode/MLNUserTrackingModeFollowWithCourse.

Changing the value of this property updates the map view with an animated transition. If you don’t want to animate the change, use the -setTargetCoordinate:animated: method instead.

Implementation

CLLocationCoordinate2D get targetCoordinate {
  final _ptr = pkg_ffi.calloc<CLLocationCoordinate2D>();
  objc.useMsgSendVariants ? _objc_msgSend_18o5nokStret(_ptr, this.ref.pointer, _sel_targetCoordinate) : _ptr.ref = _objc_msgSend_18o5nok(this.ref.pointer, _sel_targetCoordinate);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
      ffi.sizeOf<CLLocationCoordinate2D>(), finalizer: pkg_ffi.calloc.nativeFree);
  return ffi.Struct.create<CLLocationCoordinate2D>(_finalizable);

}
set targetCoordinate (CLLocationCoordinate2D value)

The geographic coordinate that is the subject of observation as the user location is being tracked.

By default, this property 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, this property 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 property has no effect if the userTrackingMode property is set to a value other than MLNUserTrackingMode/MLNUserTrackingModeFollowWithCourse.

Changing the value of this property updates the map view with an animated transition. If you don’t want to animate the change, use the -setTargetCoordinate:animated: method instead.

Implementation

set targetCoordinate(CLLocationCoordinate2D value) {
_objc_msgSend_1zv0am(this.ref.pointer, _sel_setTargetCoordinate_, value);

}