GLG Air Traffic 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 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.

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.

Click here for more information on demo's functionality and user interaction.



Source Code
 
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.

Demo Functionality

On the initial appearance, the demo shows the map of the whole world in the orthographic projection. Move the mouse over the airplane icons to display tooltips with the plane information. Click on an icon to select the plane and activate a popup panel with additional information about the plane.

To zoom on the United States, press the ZoomTo button and define a rectangular area around the US with the mouse: the shape of the icons will change to triangles showing the plane's direction with labels showing additional information about the airplane. Use tooltips to identify buttons in the toolbar. Zoom on Florida to see more elaborate plane icons and plane track history display.
Use directional buttons in the upper left corner to pan the map.

User Interaction

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

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

The toolbar also contains buttons for switching various layers on and off, changing plane icon size, toggling icon labels on and off, as well as zooming and panning controls. The tooltips for the toolbar buttons are displayed when the mouse is moved over them.

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

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