GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Computes the bounding box [[minLat, minLng], [maxLat, maxLng]] from an array of GeoJSON features.

      Parameters

      • features: unknown[] = []

        Array of GeoJSON features to compute bounds from. Defaults to [].

      Returns [[number, number], [number, number]] | null

      A [[minLat, minLng], [maxLat, maxLng]] bounding box, or null if no valid coordinates.