Enumeration Maps

Enumerations are currently implemented using secondary maps. The first map contains a menu of all the available options. In addition you need separate maps (numbered as original map number + field number of option in main enumeration map) to contain the text associated with each option in the enumeration. It is hoped that this facility will be enhanced so that it is only necessary to define the first of these maps, and to take the text to be displayed for each option directly from the main enumeration map. Alternately a facility may be provided in MAPEDIT to manage enumerations more conveniently.

For example, if your enumeration contains the three options Red=1,Green=2,Blue=3, and your main enumeration map is map 1 of the "Colours" map set, then the additional amps, would be Map 2 (Red), Map 3 (Green), and Map 4 (Blue). Mapedit uses the information in the main enumeration map to decide how many further maps there are.

If you want to use non consecutive values for your enumeration you should number the fields accordingly. For example you could assign Blue=4, by missing out field 3 in the main enumeration map and creating it as field 4 instead. In this case the map for Blue would have map number 5.

Mapname

Use this combo box to select the mapset to contain the enumeration maps. You are recommended to store enumerations in a separate mapset from other maps. One reason to do this is that currently the "Weed" facilty of QABUTIL is not aware of enumeration maps, and may therefore try to delete them if they are stored in the same mapsets as other maps.

Map Nr

Enter the map number to be used for the enumeration. Obviously this option should allow the map to be selected visually. Unfortunately this is not easy to achieve in the current Mapedit. You may find it easier to open your enumerations as a mapset so that you can find the map you want more easily.