viewForAnnotation method

MLNAnnotationView? viewForAnnotation(
  1. MLNAnnotation annotation
)

Returns an MLNAnnotationView if the given annotation is currently associated with a view, otherwise nil.

@param annotation The annotation associated with the view. Annotation must conform to the MLNAnnotation protocol.

Implementation

MLNAnnotationView? viewForAnnotation(MLNAnnotation annotation) {
  final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, _sel_viewForAnnotation_, annotation.ref.pointer);
  return _ret.address == 0 ? null : MLNAnnotationView.castFromPointer(_ret, retain: true, release: true);
}