<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/CoordinateSpan",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.CoordinateSpan"
  },
  "title" : "CoordinateSpan"
}
-->

# CoordinateSpan

The width and height of a map region.

```
class CoordinateSpan implements CoordinateSpanData
```

## Overview

You use the delta values in a coordinate span to indicate the desired zoom level of the map. Smaller delta values correspond to a higher zoom level. The *span* in this class refers to the width and height of a region, with distances as degrees of latitude and longitude.

## Topics

### Creating a coordinate span

[`constructor(latitudeDelta?: number, longitudeDelta?: number);`](/documentation/MapKitJS/CoordinateSpan/CoordinateSpanConstructor)

Creates a new coordinate span object with the specified latitude and longitude deltas.

[`interface CoordinateSpanData`](/documentation/MapKitJS/CoordinateSpanData)

A plain object representation of a coordinate span.

### Defining the span

[`latitudeDelta: number;`](/documentation/MapKitJS/CoordinateSpan/latitudeDelta)

The amount of north-to-south distance (in degrees) to display for the map region.

[`longitudeDelta: number;`](/documentation/MapKitJS/CoordinateSpan/longitudeDelta)

The amount of east-to-west distance (in degrees) to display for the map region.

### Copying and comparing spans

[`copy(): CoordinateSpan;`](/documentation/MapKitJS/CoordinateSpan/copy)

Returns a copy of the coordinate span.

[`equals(anotherSpan: CoordinateSpan): boolean;`](/documentation/MapKitJS/CoordinateSpan/equals)

Returns a Boolean value that indicates whether two spans are equal.

### Instance Methods

[`toString(): string;`](/documentation/MapKitJS/CoordinateSpan/toString)

Returns a string representation of the coordinate span object.

## Relationships

### Conforms To

[`CoordinateSpanData`](/documentation/MapKitJS/CoordinateSpanData)

---

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)