Interface: PaddingOptions
Interface defining padding options for fitBounds operations. All fields are optional - only specify the edges you need padding for. Unspecified edges default to 0.
Example
Properties
bottom?
Padding for the bottom edge of the viewport. Can be a number (pixels) or string with unit (%, vh, vw, px).
left?
Padding for the left edge of the viewport. Can be a number (pixels) or string with unit (%, vh, vw, px).
right?
Padding for the right edge of the viewport. Can be a number (pixels) or string with unit (%, vh, vw, px).
top?
Padding for the top edge of the viewport. Can be a number (pixels) or string with unit (%, vh, vw, px).
Last updated on