new Padding(top, right, bottom, left)
Creates a padding object and initializes it with the provided values.
Declaration
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 by passing in four numbers that represent the inset values for the top, right, bottom, and left edges.
map.padding = new mapkit.Padding(
10, // top inset
10, // right inset
10, // bottom inset
10 // left inset
);