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

    Class ConfigError

    The configuration or profile is unusable — invalid JSON, a missing field, a malformed profile structure.

    Code: CONFIG_ERROR.

    throw new GeoLeaf.Errors.ConfigError("Invalid profile structure: missing layers", {
    profileId: "tourism",
    expected: "Array",
    received: "undefined",
    });

    try {
    await GeoLeaf.Config.init({ url: "../data/geoleaf.config.json" });
    } catch (error) {
    if (error instanceof GeoLeaf.Errors.ConfigError) {
    console.error("Configuration incorrecte:", error.message);
    }
    }

    Hierarchy (View Summary)

    Index
    context: ErrorContext
    timestamp: string
    code: string