Contents

MapItem

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

Declaration

object MapItem

Properties

NameTypeDescription
latitude Requirednumber

The latitude of the map item.

longitude Requirednumber

The longitude of the map item.

captionstring

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

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