Home | Demos | Products

Satellite Orbits Web Demo (HTML5 & JavaScript)

This demo demonstrates the use of the GLG Map Server and GIS Object to display 3D trajectories. Satellite icons are placed inside the GIS Object and positioned by supplying lat/lon coordinates. The elevation above the Earth surface may be supplied as the Z coordinate, making it possible to display 3D trajectories. A ground track of each satellite is also displayed at elevation=0. More information

The Trajectory Demo presents another example of a 3D trajectory with a ground track and drop lines.

The GLG Map Server is used to display the globe in the orthographic projection. The globe can be rotated by dragging the drawing with the mouse, single-touch dragging on mobile devices or using the directional buttons. The GIS Object takes a complete care of the map display, automatically generating Map Server requests to re-generate the image when the globe is rotated. The trajectory polygons are generated on the fly by adding points representing the current positions of the satellites.

On mobile devices, single-touch dragging in the map area rotates the globe, while two-touch dragging scrolls or zooms the page.

The JavaScript version of the demo provides the same functionality as the desktop versions written in C/C++, C# and Java. The GLG drawing and the programming logic are shared between all versions of the demo, with only syntax differences between the source code of different versions. The GLG Demo Download includes the desktop versions of this demo.

NOTE: To run the demo locally from your own server, the GLG Map Server has to be setup on that server. If the map server is not set up, the map image will be missing. Refer to the map_server/README.txt file in the GLG installation directory for details. The demo source code also needs to be modified to set the SuppliedMapServerURL variable to point to your map server URL.