MapItem
An object used in a map component for specifying the location of a map pin.
Declaration
object MapItemProperties
| Name | Type | Description |
|---|---|---|
latitude Required | number | The latitude of the map item. |
longitude Required | number | The longitude of the map item. |
caption | string | 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
}
]
}
]
}