Nato Vector Graphics

Explanation

A sample that demonstrates the modeling, visualization, editing, and creation of NVG data. On startup, the sample decodes an NVG file illustrating a fictitious takeover of San Francisco. All military symbols in the file come from the APP-6B standard. For illustration purposes, some points use a domain-specific symbol set to represent civilian entities. Use the Open button to load a different NVG file or create a new, empty document.

Instructions

Navigate

All NVG features on the map are also shown in the feature tree on the right. The selection is synced, meaning that you can click on a feature in the tree to select it on the map, and vice versa.

At the top of the tree you can find a "fit on selection" toggle switch. When enabled, the map will automatically zoom to the selected feature.

Select

Most elements on the map can be selected by clicking on them. You can also select (and unselect) multiple elements by using the Shift key.

When selecting a composite element on the map, all parts of the composite are selected together. To select a single part, click on that part in the feature tree on the right.

For group elements, the behavior is reversed: you can select individual elements on the map, but to select the entire group, use the feature tree.

Delete

A selected feature can be deleted, either through the Delete key, or by using the bucket button at the top of the properties panel.

Any group or composite element can be ungrouped, this can be done by using the dissolve button next to the group or composite element in the tree.

Any element in the tree can be moved to another parent by dragging the element and dropping it somewhere inside the new parent (or in the root). Not all moves are allowed, for example, a group element can not be moved inside a composite element. For allowed moves, the element will end up as last child of the destination. These moves are added to the undo/redo stack. If a move is not allowed, there will be no effect, the element will just jump back to its current position.

Edit

Click on a symbol on the map to select it. You can drag the shape or its handles to edit the geometry, and change the properties and style in the symbol properties panel on the right.

Not all modifiers in the editing panel affect the visual presentation of the symbol; some only update the underlying attributes of the object. For example, the Country modifier changes the attributes of the domain object but does not alter its visualization, because symbology standards such as MIL-STD-2525b do not define a visual variation for every possible modifier.

Create

To create a new icon or graphic, use the creation toolbar at the bottom. First, pick a symbology from the dropdown and type the name of a symbol. You can use the symbology APP-6A, APP-6B, APP-6C, APP-6D, APP-6E, MIL-STD-2525b, MIL-STD-2525c, and MIL-STD-2525d, or create unsymbolized elements. Then choose the NVG type by clicking the corresponding button — this opens a panel with a preview image of the symbol and instructions on how to proceed. Click on the map to draw your new military symbol. The toggle on the right of the creation bar lets you choose between drawing the symbol from a template or point-by-point.

To create a content-item, which is an NVG Feature without a map representation, just right-click on the map on an empty space and choose "Create content item". The item will appear in the tree, and you'll be able to change its properties.

To create a new group or composite item, select at least two of its new children, right-click and choose the appropriate item from the context menu. There will be no effect on the map, but the tree on the right will show the new hierarchical structure. The new group or composite element will be at the bottom of the tree.

Export

To obtain a file with the changes you made, click on the "Export" button. This will download a file with the current state of the map in NVG format.

Cluster

This sample also demonstrates how to cluster military symbols. The following rules are applied: