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

# data

Data that you define that’s specific to an annotation.

## Declaration

```data
get data(): object;
set data(data: object);
```

## Discussion

Discussion This is data of your choosing that you can assign to the annotation. It can be any JavaScript value, and defaults to an empty object.

## See Also

### Getting and setting data, titles, and the accessibility label

- [title](mapkitjs/annotation/title.md)
- [subtitle](mapkitjs/annotation/subtitle.md)
- [accessibilityLabel](mapkitjs/annotation/accessibilitylabel.md)
