Here’s simple HTML that will get you going:
The key elements are:
<script>tag in the
<head>section that loads up the WWT WebGL engine. You interface with this library via a global variable named
<div>element that becomes home for the WWT viewport.
With this minimal initialization, you get a viewer that allows you to pan around and use the scroll wheel to zoom in, providing an interface reminiscent of popular Earth map web apps.
Once this framework is established, the sky is the limit! You can access the
documented in the @wwtelescope/engine
TypeScript module, namespaced inside the
wwtlib variable. The majority of your
programmatic interactions with the engine will occur
class, accessed through
singleton value, and
the ScriptInterface class,