<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/MapPoint/MapPointConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.MapPoint/MapPointConstructor"
  },
  "title" : "new MapPoint(x, y)"
}
-->

# new MapPoint(x, y)

Creates a map location.

```
constructor(x?: number, y?: number);
```

## Parameters

`x`

The point along the east-west axis of the map projection.

`y`

The point along the north-south axis of the map projection.

## Discussion

The x and y values of the point are unit values. MapKit JS expects the value to be between `0` and `1,` and represents an interpolated location on the map projection in the x and y coordinates, respectively.

The following example creates a point that’s one-tenth across the map projection along the x-axis, and half way across the y-axis:

```javascript
const mapPoint = new mapkit.MapPoint(0.1, 0.5);
const x = mapPoint.x; // 0.1
const y = mapPoint.y; // 0.5
```

---

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)