Skip to Content
APIMapType Alias: PaddingValue

Type Alias: PaddingValue

px

Represents a padding value that can be:

  • A number (interpreted as pixels)
  • A string with a unit: “10%”, “5vh”, “5vw”, “100px”

Supported units:

  • px - Pixels (default if number)
  • % - Percentage of the map container dimension (width for left/right, height for top/bottom)
  • vh - Percentage of viewport height
  • vw - Percentage of viewport width

Example

%

Last updated on