anchorPointForGesture method

CGPoint anchorPointForGesture(
  1. UIGestureRecognizer gesture
)

Returns the point in this view’s coordinate system on which to “anchor” in response to a user-initiated gesture.

For example, a pinch-to-zoom gesture would anchor the map at the midpoint of the pinch.

If the userTrackingMode property is not MLNUserTrackingMode/MLNUserTrackingModeNone, the user annotation is used as the anchor point.

Subclasses may override this method to provide specialized behavior - for example, anchoring on the map’s center point to provide a "locked" zooming mode.

@param gesture An anchorable user gesture. @return The point on which to anchor in response to the gesture.

Implementation

objc.CGPoint anchorPointForGesture(UIGestureRecognizer gesture) {
  final _ptr = pkg_ffi.calloc<objc.CGPoint>();
  objc.useMsgSendVariants ? _objc_msgSend_1mpyy6yStret(_ptr, this.ref.pointer, _sel_anchorPointForGesture_, gesture.ref.pointer) : _ptr.ref = _objc_msgSend_1mpyy6y(this.ref.pointer, _sel_anchorPointForGesture_, gesture.ref.pointer);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
      ffi.sizeOf<objc.CGPoint>(), finalizer: pkg_ffi.calloc.nativeFree);
  return ffi.Struct.create<objc.CGPoint>(_finalizable);

}