• Initialize the WWT engine.

    While this function is maintained for backwards compatibility, modern users should use the WWTControlBuilder class to initialize and instantiate the engine.

    The engine is not immediately usable since it must perform initialization that includes fetching resources from the network.

    If the value of startMode is not recognized, Sky mode is assumed.

    Parameters

    • divId: string

      The id of the DOM element into which the WWT WebGL surface will be inserted.

    • startRenderLoop: boolean

      If true, the engine's internal rendering loop will be launched immediately.

    • startLat: number

      The starting declination or latitude for the view, in degrees.

    • startLng: number

      The starting longitude or right ascension for the view, in degrees.

    • startZoom: number

      The starting zoom level for the view.

    • startMode: string

      The starting mode for the view: one of "earth" or "Sky" or "black".

    Returns ScriptInterface

    A handle to a ScriptInterface associated with this engine instance.

Generated using TypeDoc