GeoLeaf Core API - v3.19.0
    Preparing search index...

    Function resolveViewPadding

    • Reads the profile's map.padding into the room kept around a framed extent.

      Parameters

      • padding: unknown

        The value of map.padding: an array, or an object of edges.

      Returns ViewPadding

      The four edges, with the symmetric padding that covers them. An array reads [horizontal, vertical], a missing entry giving 50; an object gives each edge it names and 0 for the others; anything else gives 50 pixels on every edge.