<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Padding/PaddingConstructor5",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.Padding/PaddingConstructor5"
  },
  "title" : "new Padding(top, right, bottom, left)"
}
-->

# new Padding(top, right, bottom, left)

Creates a padding object and initializes it with the provided values.

```
constructor(top: number, right: number, bottom: number, left: number);
```

## Parameters

`top`

The top inset margin.

`right`

The right inset margin.

`bottom`

The bottom inset margin.

`left`

The left inset margin.

## Discussion

Create [`Padding`](/documentation/MapKitJS/Padding) by passing in four numbers that represent the inset values for the top, right, bottom, and left edges.

```javascript
map.padding = new mapkit.Padding(
    10, // top inset
    10, // right inset
    10, // bottom inset
    10 // left inset
);
```

---

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)