GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Returns a new GeoLeafBounds expanded by the given ratio on all sides.

      Replaces the legacy latLngBounds().pad() call. Used to compute maxBounds for the positionFixed feature.

      Parameters

      • b: GeoLeafBounds

        Original bounds.

      • ratio: number

        Expansion ratio (e.g. 0.3 = 30% added to each side).

      Returns GeoLeafBounds

      Expanded bounds as a plain GeoLeafBounds object.