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

# size

The desired dimensions of the annotation, in CSS pixels.

## Declaration

```data
get size(): Size | null;
set size(value: Size);
```

## Discussion

Discussion If supplied, indicates the desired size of the annotation in CSS pixels. The value must be an object with width and height number properties: {     size: { width: 32, height: 39 } }

## 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)
- [padding](mapkitjs/annotation/padding.md)
- [visible](mapkitjs/annotation/visible.md)
