The configuration or profile is unusable — invalid JSON, a missing field, a malformed profile structure.
Code: CONFIG_ERROR.
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); }} Copy
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); }}
Returns a string representation of an object.
The configuration or profile is unusable — invalid JSON, a missing field, a malformed profile structure.
Code:
CONFIG_ERROR.Example