<!--
{
  "availability" : [
    "MapKit JS: 5.16.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/AnnotationConstructorOptions/padding",
  "metadataVersion" : "0.1.0",
  "role" : "Interface Property",
  "symbol" : {
    "kind" : "Interface Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "structp/mapkit.AnnotationConstructorOptions/padding"
  },
  "title" : "padding"
}
-->

# padding

Spacing to add around the annotation when showing items.

```
padding?: PaddingData;
```

## Discussion

Padding prevents any items from touching the edges of the map. Set `padding` to a [`Padding`](/documentation/MapKitJS/Padding) object. The default is no padding on all sides.

---

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)