3D-City Model
    Preparing search index...

    Function resolveEntry

    • Recursively resolves a config entry or nested config structure:

      • Arrays: Each entry is resolved and flat-mapped.
      • Objects: If containing "url" and "resolve", the "url" is resolved on the fly; otherwise, recurses into the object.
      • Strings:
        • ".txt": Fetches, splits by comma, applies cleanup, and recursively resolves each item.
        • ".json" (excluding "tileset.json"): Fetches and parses as JSON, recurses unless resolve=false.
      • Other entries are returned as-is.

      Parameters

      • entry: ConfigEntry

        The config entry to resolve.

      • Optionalresolve: boolean = true

        Whether to resolve referenced entries.

      Returns Promise<ConfigEntry>

      The fully resolved value (string, object, or array).

      const val = await resolveEntry('remote/config.json');