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

    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

    Constructors

    Properties

    Methods

    Constructors

    Properties

    context: ErrorContext
    timestamp: string
    code: string

    Methods