Home | AJAX Demos | Java Demos | Products

GIS Air Traffic Control Demo

This demo presents another example of using the GLG Map Server integrated inside of a GLG drawing as a GLG GIS Object. The Map Server is used to generate the background map, while the Toolkit is used to display dynamic icons on top of the map and handle user interaction. The GIS Object takes a complete care of the map display, automatically generating Map Server requests to re-generate the image when the map is panned or zoomed.

The demo uses a simple vector dataset, more detailed datasets may be used depending on the application needs. The GLG GIS Demo shows an example of a more detailed map dataset.

  • Overview
  • User Interface


  • Applet Source Code

    Overview

    The demo shows functionality typical for air-traffic applications, changing the airplane icons to display more elaborate shapes when the map is zoomed in. The color of the airplane icon changes to display the plane's status. For the high zoom factors, the plane history is also displayed in a form of a shading out airplane trail. The plane labels may also be turned on to show more information, and a tooltip with detailed information is displayed when the mouse is moved over a plane icon. When a plane icon is selected with the mouse, a popup panel is activated to display more information about the plane, including its current position and speed.

    The demo also shows an example of implementing a distance measuring mode.

    On the initial appearance, the demo shows the map of the whole world in the orthographic projection, then zooms on the Florida area to show more details. When the map is zoomed in, the shape of the icons will change to show the plane's direction, and labels with additional information about the airplane will be displayed. A vertical bar next to the airplane icon will show the airplane's elevation. Icon labels may be turned on or off with a toolbar button.

    The airplane icons display tooltips with the flight information on mouse over. Clicking on an icon selects the plane and activate a popup dialog with additional information about the flight, including its lat/lon coordinates. The airport icons display tooltip with their coordinates on mouse over as well.

    The map may be zoomed using zoom buttons in the toolbar. The tooltips may be used to identify toolbar buttons. The directional buttons in the upper left corner of the map may be used to scroll the map.

    User Interface

    Move the mouse over an icon to display a tooltip with icon information.

    Move the mouse over a map to display the lat/lon coordinates of the cursor in the lower right corner of the map.

    Click on the moving icon to select it and display detailed information about the plane, including its current speed and position.

    The toolbar contains buttons for switching various layers on and off, changing plane icon size and turning icon labels on and off. Use tooltips to identify toolbar buttons.

    To measure a distance on the map, press the Distance Measuring button in the toolbar, then select several points on the map with the mouse. The distance between the point will be displayed in the lower left corner of the map.

    The status area at the bottom displays prompts for various demo modes and status information.

    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.