• JMap.Util.loadJSFile

    Load an external JS File then resolve when file has been loaded.

    Parameters

    • fileUrl: string

      the JS URL to load

    Returns Promise<void>

    Example

    // load your custom JS file dynamically
    JMap.Util.loadJSFile("https://mysever/toLoadFile.js")