Map view Legend - ObjectVision/GeoDMS GitHub Wiki
User Guide GeoDMS GUI - map view legend

The upper part of the legend shows an overview. It is a zoomed out extent of the contents of the configured background layer.
Use the Toggle buttons (

) to show or hide the overview and the legend.
The Toggle buttons above switch the whole legend on and off. Two separate actions change its width. There is no splitter between the map and the legend that you can drag.
| action | effect |
|---|---|
| Ctrl-Shift-Left | the legend becomes 10 pixels wider, at the expense of the map. On a hidden legend, it makes the legend visible again |
| Ctrl-Shift-Right | the legend becomes 10 pixels narrower, in favour of the map. Narrowing beyond the minimum hides the legend altogether |
The legend never becomes wider than its contents need. It also never becomes wider than the map view itself. So if you repeat Ctrl-Shift-Left, it stops at the width at which every layer control fits.
The pop-up menu of the map view offers the same two actions, and one more:
- Widen LayerControl
- Narrow LayerControl
- Copy LayerControl to Clipboard (Ctrl-G), which puts a bitmap of the legend on the clipboard.
To get this menu, right click on an empty area of the legend (below the layer controls), or anywhere in the map.
Each of these menu options shows the keys that do the same.

example of a legend with three layers
The legend of the map view has two functions:
- to inform the user about the layers in the map view. This includes the classification, the palette and the value of a highlighted element in the map. In the example, the colors indicate each class. The symbol in each colored box shows the layer type:
- to activate layer specific functionality of the layers in the map view.
The layer control of the selected (active) layer has a highlighted caption bar. It is drawn on a background 20 shades darker than the default, so that it is easy to pick out. Layer controls have a three-pixel 3D border; table header controls have a two-pixel border.
Some point, arc or polygon layers have no classification or palette, for instance a geometry attribute opened as it is. Such a layer shows one legend row, with the colours that the map draws it in. These are the default colours that the map view assigned to the layer, or the constant BrushColor, PenColor or SymbolColor configured for it. So you can tell two such layers in one map apart in the legend, for instance the ligplaatsen and standplaatsen of a BAG snapshot. The row has no label and no column header.
Right click on a layer to open a pop-up menu:

The following options are available:
- Hide LayerControl for layer: the layer is not shown in the legend. For example, you can hide background layers when you export a legend. To make the hidden layers visible again, right click on an empty area of the layer control.
- Set LayerControl Font: sets the size of the layer font in the legend. There are three options: small (the default), medium and large.
- Bring z-Position of Layer: the order of the layers in the legend is the drawing order in the map view. Four submenu options change this order. Grid layers drawn above other layers are shown transparently. Only the submenu actions that apply are enabled:
- To Top: the layer is drawn above all other layers. In the legend, the layer moves to the top. This option is only available if the layer is not yet the top layer in the drawing order.
- To Bottom: all other layers are drawn above this layer. In the legend, the layer moves to the bottom. This option is only available if the layer is not yet the last layer in the drawing order.
- Up: the layer moves one step higher in the drawing order. In the legend, the layer moves one place up. This option is only available if the layer is not yet the top layer in the drawing order.
- Down: the layer moves one step lower in the drawing order. In the legend, the layer moves one place down. This option is only available if the layer is not yet the last layer in the drawing order. You can also change the order by dragging and dropping the layer.
- Remove layer: removes the layer from the map view.
Depending on the type of layer, some additional options are available:
- Show Statistics on layer: opens a window with the same statistics as the Statistics Window from the View menu.
- Classify ...: lists the classifications that are available for the data item in the layer, if there are any. The user can select one of them.
- Activate TreeItem of Layer Aspect: for each aspect, you can activate the corresponding Tree Item in the TreeView. This is the item with the thematic data and, if used, the class breaks and aspect values. The submenus show the items with relevant aspects, and their parents. Left click on an item to activate it.
- Select SubLayer(s) (not for grid layers): lets you switch each style aspect used to draw a layer on or off separately. Each layer type has its own style aspects, so the submenu options differ per layer type. A checkmark shows that a style aspect is active (visible). For polygon and point layers, you can show labels with the Select SubLayer > Label > Visible menu option.
- Zoom 1 Grid to 1 Pixel (only for grid layers): zooms the layer to the level at which each grid cell is one pixel. This is often the most elegant level to show a grid. For background layers, use this option to zoom to the level at which the layer is rendered.
- Show Palette (only if a palette item is used for visualization): shows or hides the palette and label information of the classification scheme of the data item in the legend. A checkmark before the menu option shows that the information is visible.
- Edit Palette: opens the Classification and Palette editor to edit the classification or palette used to draw the layer.
- Copy Classbreaks (only for a classified layer): copies the class breaks of the layer to the clipboard, together with the color and the label of each class. The option is disabled for a layer that is drawn per unique value rather than per class.
-
Paste Classbreaks: applies the class breaks on the clipboard to this layer. This way you can reuse a classification made in one map view in another one. If the clipboard has colors and labels, they are applied too. If not, the standard color ramp and range labels are derived from the pasted breaks. The option is disabled when the clipboard holds no class breaks.
- The class attributes that the GeoDMS generated for a view (under
/Desktops/...) are overwritten in place. - A configured or calculated classification is never overwritten, because every other view that uses it shares it. Instead, an editable copy is generated and the layer is re-themed onto it. A message in the event log says so.
- A paste is refused when the value type of the thematic values cannot represent a class break, for instance a negative break on a uint32 attribute. Nothing is changed in that case.
- The clipboard format is one class per line,
ClassBreak;Color;Label. Comment lines that record the source come first. - The paste reads the clipboard tolerantly, so a table of class breaks pasted from a spreadsheet or from another GIS also works:
- tab, semicolon and comma all work as separator;
- a header line is optional;
- colors are read as
rgb(r,g,b),#RRGGBBor0x00BBGGRR; - a bare column of numbers is a valid list of class breaks.
- The class attributes that the GeoDMS generated for a view (under
You can edit a cell of the legend, and of the Classification and Palette editor, even when the data item behind it has a calculation rule. GeoDMS makes a copy at the first edit, and the edits go to that copy:
- The configured item itself is never written. It belongs to the configuration, and every other view that uses the same classification shares it. Editing it would silently change those views too.
- Instead, the values that the rule currently computes are copied into a new item under
/Desktops/<desktop>/ViewData/. The layer is re-themed onto that copy, and the edit is applied there. The event log names both items. - Every following edit of the same cell goes to that same copy. So a second color change continues from the first one, and does not start again from the configured values.
- Like every other edit made from the legend or the palette editor, the copy only lives for the current session. To keep it, put it in the configuration file; see classification.
This does not cover the number of classes. Adding or removing a class resizes the class unit itself, not one of its attributes, and no copy is made for that. To move to a classification with a different number of classes, use Copy Classbreaks and Paste Classbreaks above. This generates a whole new classification for the view.
A calculation rule that is a plain reference to another item, such as PenColor := BrushColor, is not copied: the edit goes directly to the referred item.