---
title: calloutShouldAppearForAnnotation(annotation)
framework: mapkitjs
role: symbol
role_heading: Interface Method
path: mapkitjs/annotationcalloutdelegate/calloutshouldappearforannotation
---

# calloutShouldAppearForAnnotation(annotation)

Determines whether the callout appears for an annotation.

## Declaration

```data
calloutShouldAppearForAnnotation?(annotation: Annotation): boolean;
```

## Parameters

- `annotation`: The annotation for the callout.

## Return Value

Return Value The method returns a Boolean value, where a value of false prevents the callout from appearing.

## Discussion

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.

## See Also

### Customizing callout appearance

- [calloutAnchorOffsetForAnnotation(annotation, size)](mapkitjs/annotationcalloutdelegate/calloutanchoroffsetforannotation.md)
- [calloutShouldAnimateForAnnotation(annotation)](mapkitjs/annotationcalloutdelegate/calloutshouldanimateforannotation.md)
- [calloutAppearanceAnimationForAnnotation(annotation)](mapkitjs/annotationcalloutdelegate/calloutappearanceanimationforannotation.md)
