overlayBounds property

MLNCoordinateBounds get overlayBounds

The cooordinate rectangle that encompasses the overlay. (required) (read-only)

This property contains the smallest rectangle that completely encompasses the overlay. Implementers of this protocol must set this area when implementing their overlay class, and after setting it, you must not change it.

If this overlay spans the antimeridian, its bounds may extend west of −180 degrees longitude or east of 180 degrees longitude. For example, an overlay covering the Pacific Ocean from Tokyo to San Francisco might have a bounds extending from (35.68476, −220.24257) to (37.78428, −122.41310).

Implementation

MLNCoordinateBounds get overlayBounds {
  final _ptr = pkg_ffi.calloc<MLNCoordinateBounds>();
  objc.useMsgSendVariants ? _objc_msgSend_ygoa6aStret(_ptr, this.ref.pointer, _sel_overlayBounds) : _ptr.ref = _objc_msgSend_ygoa6a(this.ref.pointer, _sel_overlayBounds);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
      ffi.sizeOf<MLNCoordinateBounds>(), finalizer: pkg_ffi.calloc.nativeFree);
  return ffi.Struct.create<MLNCoordinateBounds>(_finalizable);

}