Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class EdgeInsets

An EdgeInset object represents screen space padding applied to the edges of the viewport. This shifts the apparent center or the vanishing point of the map. This is useful for adding floating UI elements on top of the map and having the vanishing point shift as UI elements resize.

Index
  • Parameters

    • Optionaltop: number
    • Optionalbottom: number
    • Optionalleft: number
    • Optionalright: number

    Returns EdgeInsets

bottom: number
0
left: number
0
right: number
0
top: number
0
  • Utility method that computes the new apparent center or vanishing point after applying insets. This is in pixels and with the top left being (0.0) and +y being downwards.

    Parameters

    • width: number

      the width

    • height: number

      the height

    Returns Point

    the point

  • Interpolates the inset in-place. This maintains the current inset value for any inset not present in target.

    Parameters

    Returns this

    the insets

Was this helpful?