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

    Data failed validation — invalid coordinates, a missing parameter, a malformed shape.

    Code: VALIDATION_ERROR.

    throw new GeoLeaf.Errors.ValidationError("Latitude must be between -90 and 90", {
    lat: 95,
    lng: -73,
    expected: "Range: -90 to 90",
    });

    // Catch spécifique
    try {
    GeoLeaf.Core.init({
    // options
    });
    } catch (error) {
    if (error instanceof GeoLeaf.Errors.ValidationError) {
    console.error("Erreur de validation:", error.context);
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    context: ErrorContext
    timestamp: string
    code: string

    Methods