Contents

MapSpan

An object used in a map or place component for defining the visible area of the map.

Declaration

object MapSpan

Properties

NameTypeDescription
latitudeDelta Requirednumber

A float value between 0.0 and 90.0.

longitudeDelta Requirednumber

A float value between 0.0 and 180.0.

Discussion

Use the MapSpan object to define the visible bounds of a map using deltas from a defined center coordinate.

This object can be used in Map and Place.

Example

{
  "components": [
    {
      "role": "map",
      "caption": "Apple Headquarters",
      "latitude": 37.3315294,
      "longitude": -122.0183063,
      "mapSpan": {
        "latitudeDelta": 0.1,
        "longitudeDelta": 0.1
      }
    }
  ]
}

See Also

Location