<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNewsFormat",
  "identifier" : "/documentation/AppleNewsFormat/MapItem",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:MapItem"
  },
  "title" : "MapItem"
}
-->

# MapItem

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

```
object MapItem
```

## 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`](/documentation/AppleNewsFormat/Map).

### Example

```json
{
  "components": [
    {
      "role": "map",
      "caption": "Apple Headquarters",
      "items": [
        {
          "caption": "Apple Headquarters",
          "latitude": 37.3315294,
          "longitude": -122.0183063
        }
      ]
    }
  ]
}
```

---

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)