calloutShouldAppearForAnnotation(annotation)
Determines whether the callout appears for an annotation.
Declaration
calloutShouldAppearForAnnotation?(annotation: Annotation): boolean;Parameters
- annotation:
The annotation for the callout.
Return Value
The method returns a Boolean value, where a value of false prevents the callout from appearing.
Discussion
When the user selects an annotation, MapKit JS calls this method on the annotation’s callout delegate (if the delegate is an object and its calloutShouldAppearForAnnotation(annotation) property is a function) with the annotation as a parameter.