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

# MapPoint

A location, in map units, of a point on the Earth’s surface projected onto a 2D map.

```
class MapPoint implements MapPointData
```

## Overview

Map units are a value from `0` to `1` that represent an interpolated location within the height or width of the full map projection. On a two-dimensional map, the upper-left corner of the map projection has the coordinate (`0,` `0`), and the lower-right corner of the map projection has the coordinate (`1,` `1`).

As another point of reference, `mapkit.MapPoint(0.5,` `0.5)` corresponds to the center of the map, which MapKit JS also represents as the coordinate `mapkit.Coordinate(0,` `0)`.

## Topics

### Creating a map point

[`constructor(x?: number, y?: number);`](/documentation/MapKitJS/MapPoint/MapPointConstructor)

Creates a map location.

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

A plain object representation of a map point in map units.

### Defining a map point

[`x: number;`](/documentation/MapKitJS/MapPoint/x)

The location of the map point along the map’s x-axis.

[`y: number;`](/documentation/MapKitJS/MapPoint/y)

The location of the map point along the map’s y-axis.

[`z: number;`](/documentation/MapKitJS/MapPoint/z)

The z component of a map point.

[`w: number;`](/documentation/MapKitJS/MapPoint/w)

The w component of a map point.

### Working with map points

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

Returns a copy of the location.

[`equals(anotherPoint: MapPoint): boolean;`](/documentation/MapKitJS/MapPoint/equals)

Indicates whether two map points are equal.

[`toCoordinate(): Coordinate;`](/documentation/MapKitJS/MapPoint/toCoordinate)

Converts a map point into a coordinate with latitude and longitude.

### Instance Methods

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

Returns a string representation of the map point object.

## Relationships

### Conforms To

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

---

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)