selectAnnotation method
Deprecated. Selects an annotation and displays its callout view.
The animated parameter determines whether the selection is animated including whether the map is
panned to bring the annotation into view, specifically:
animated parameter |
Effect |
|---|---|
NO |
The annotation is selected, and the callout is presented. However the map is |
| not panned to bring the annotation or callout into view. The presentation of the callout is NOT | |
| animated. | |
annotation is not visible (or is partially visible) and is of type MLNPointAnnotation, the |
|
| map is panned so that the annotation and its callout are brought into view. The annotation is not | |
| centered within the viewport. |
Note that a selection initiated by a single tap gesture is always animated.
To specify a completion handler to execute after the animation finishes, use
the -selectAnnotation:animated:completionHandler: method.
@param annotation The annotation object to select.
@param animated If YES, the annotation and callout view are animated on-screen.
Note: In versions prior to
4.0.0selecting an offscreen annotation did not change the camera.
Implementation
void selectAnnotation(MLNAnnotation annotation, {required bool animated}) {
_objc_msgSend_6p7ndb(this.ref.pointer, _sel_selectAnnotation_animated_, annotation.ref.pointer, animated);
}