2D

Vertical View

This sample demonstrates how a map with a cartesian reference can be used to create a vertical view. The sample shows a regular map containing airspaces and plane trajectories. The vertical view illustrates which airspaces are crossed by the selected trajectory, and allows to easily identify the locations and altitudes at which the aircraft enters and leaves those airspaces.

The trajectories are represented by a green polyline in both the regular map and the vertical view. The airspaces are represented by polygons. The airspaces have a minimum and maximum height property. Those heights represent the lower and upper altitude bounds of the airspace.

When you select a trajectory, the vertical view will be updated for that specific track. The X-axis represents the distance along the trajectory (0 meter meaning the start of the track) and the Y-axis represents the altitude. This allows to determine the height of the aircraft at any location along its trajectory.

The vertical view also shows the airspaces whose boundaries are crossed by the aircraft, represented as rectangles. The lower and upper height of the rectangle (the y-coordinates) are determined by the minimum and maximum height of the airspace. The x-coordinates are determined by the location where the trajectory enters and leaves the airspace. When the aircraft passes below/above a certain airspace, the polyline in the vertical view will pass underneath/above the corresponding rectangle. When the aircraft enters the airspace, the polyline will enter the corresponding rectangle. Airspaces of which the boundaries are not crossed by the aircraft will not be shown in the vertical view.

Note that the airtrack and airspace layers in the vertical view use the same models as the corresponding layers on the regular map. The conversion from the Feature contained in the model to the shape which is shown in the vertical view is done by configuring a ShapeProvider on the FeatureLayer (see the AirspaceShapeProvider and TrajectoryShapeProvider classes). For more information about the ShapeProvider, see the non-map view documentation.

Due to the sharing of the model between vertical view and map, updates to the trajectory on the map (right click | Edit and double click afterwards to confirm) are immediately visible in the vertical view.

Navigation is possible in both the vertical view and the map view. Note that the vertical view allows to zoom in/out on a specific axis as well, without altering the scale on the other axis (non-uniform scaling/zooming). Use the mouse wheel next to the axis just outside the view to zoom in/out on that particular axis. Using the mouse wheel inside the view scales both axes at the same time.

The airspaces are drawn with borders that are styled using BorderStyle API. The BorderStyle decorates the outline of a closed shape with the inner and the outer border style.

To show the icons and labels in the border of the vertical view, the painter of the airspaces implements the optional paintBorderBody and paintBorderLabel methods. These two methods correspond to two paint representations PaintRepresentation.BORDER_BODY and PaintRepresentation.BORDER_LABEL .

---°--'--",----°--'--"
0.0m
100 m
LAYERS
compass

Vertical View

This sample demonstrates how a map with a cartesian reference can be used to create a vertical view. The sample shows a regular map containing airspaces and plane trajectories. The vertical view illustrates which airspaces are crossed by the selected trajectory, and allows to easily identify the locations and altitudes at which the aircraft enters and leaves those airspaces.

The trajectories are represented by a green polyline in both the regular map and the vertical view. The airspaces are represented by polygons. The airspaces have a minimum and maximum height property. Those heights represent the lower and upper altitude bounds of the airspace.

When you select a trajectory, the vertical view will be updated for that specific track. The X-axis represents the distance along the trajectory (0 meter meaning the start of the track) and the Y-axis represents the altitude. This allows to determine the height of the aircraft at any location along its trajectory.

The vertical view also shows the airspaces whose boundaries are crossed by the aircraft, represented as rectangles. The lower and upper height of the rectangle (the y-coordinates) are determined by the minimum and maximum height of the airspace. The x-coordinates are determined by the location where the trajectory enters and leaves the airspace. When the aircraft passes below/above a certain airspace, the polyline in the vertical view will pass underneath/above the corresponding rectangle. When the aircraft enters the airspace, the polyline will enter the corresponding rectangle. Airspaces of which the boundaries are not crossed by the aircraft will not be shown in the vertical view.

Note that the airtrack and airspace layers in the vertical view use the same models as the corresponding layers on the regular map. The conversion from the Feature contained in the model to the shape which is shown in the vertical view is done by configuring a ShapeProvider on the FeatureLayer (see the AirspaceShapeProvider and TrajectoryShapeProvider classes). For more information about the ShapeProvider, see the non-map view documentation.

Due to the sharing of the model between vertical view and map, updates to the trajectory on the map (right click | Edit and double click afterwards to confirm) are immediately visible in the vertical view.

Navigation is possible in both the vertical view and the map view. Note that the vertical view allows to zoom in/out on a specific axis as well, without altering the scale on the other axis (non-uniform scaling/zooming). Use the mouse wheel next to the axis just outside the view to zoom in/out on that particular axis. Using the mouse wheel inside the view scales both axes at the same time.

The airspaces are drawn with borders that are styled using BorderStyle API. The BorderStyle decorates the outline of a closed shape with the inner and the outer border style.

To show the icons and labels in the border of the vertical view, the painter of the airspaces implements the optional paintBorderBody and paintBorderLabel methods. These two methods correspond to two paint representations PaintRepresentation.BORDER_BODY and PaintRepresentation.BORDER_LABEL .