<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationCalloutDelegate/calloutShouldAppearForAnnotation",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Method",
  "symbol" : {
    "kind" : "Interface Method",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structm/mapkit.AnnotationCalloutDelegate/calloutShouldAppearForAnnotation"
  },
  "title" : "calloutShouldAppearForAnnotation(annotation)"
}
-->

# calloutShouldAppearForAnnotation(annotation)

Determines whether the callout appears for an annotation.

```
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)`](/documentation/MapKitJS/AnnotationCalloutDelegate/calloutShouldAppearForAnnotation) property is a function) with the annotation as a parameter.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)