---
title: MapItem
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/mapitem
---

# MapItem

An object used in a map component for specifying the location of a map pin.

## Declaration

```data
object MapItem
```

## Properties

latitude: The latitude of the map item. longitude: The longitude of the map item. caption: The name of the map item. This caption is  displayed when a user taps on a map pin.

## Discussion

Discussion In the Map component, use an array of items to specify the location (latitude and longitude) for the pins you want displayed on the map. See Map. Example {   "components": [     {       "role": "map",       "caption": "Apple Headquarters",       "items": [         {           "caption": "Apple Headquarters",           "latitude": 37.3315294,           "longitude": -122.0183063         }       ]     }   ] }

## See Also

### Location

- [Map](applenewsformat/map.md)
- [MapSpan](applenewsformat/mapspan.md)
- [Place](applenewsformat/place.md)
