---
title: padding
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/annotation/padding
---

# padding

Spacing to add around the annotation when showing items.

## Declaration

```data
get padding(): Padding;
set padding(value: PaddingData);
```

## Discussion

Discussion Padding prevents any items from touching the edges of the map. Set padding to a Padding object (the default is no padding on all sides).

## See Also

### Getting and setting annotation appearance

- [coordinate](mapkitjs/annotation/coordinate.md)
- [anchorOffset](mapkitjs/annotation/anchoroffset.md)
- [appearanceAnimation](mapkitjs/annotation/appearanceanimation.md)
- [displayPriority](mapkitjs/annotation/displaypriority-data.property.md)
- [size](mapkitjs/annotation/size.md)
- [visible](mapkitjs/annotation/visible.md)
