GFE/ifpIMAGE Configuration File
Map Background Configuration

The map background configuration section defines the following:
GFE Configuration Item
Applicable to GFE
Applicable to ifpIMAGE
Notes
Default Map Backgrounds YES YES
Map Background Colors YES YES
Map Background Line Widths YES YES
Map Background Line Pattern YES YES
Map Label Offsets YES YES
Map Background Labels YES YES
Map Background Font Offset YES YES The entry Map_font defines the base font to be used on all map backgrounds.



Default Map Backgrounds

The default map background list can contain zero or more map names.  Refer to Maps.py in the server configuration file section for the possible set of map names, or use the GFE to display the list of available maps and choose names from the list.

The following variable will load the initial loaded set of map backgrounds. The name of the
background should match the list of available maps defined in Maps.py in the server configuration files.

MapBackgrounds_default = ['CWA','States']

 

Map Background Colors

The available set of map background colors is specified in the MapBackgrounds_availColors.  At present, all map backgrounds use the first color, unless explicitly overridden; the other colors are not assigned.  The list of available colors is used in the spatial editor popup button 3 menu over the map legend.  It is the list of colors that appear in the change graphic color menu.

The following variable defines the available colors for the map backgrounds that appears
in the color list popup button 3 over a map legend.

MapBackgrounds_availColors = ['gray60', 'yellow', 'white']

Default Map Background colors can be set by map name.  If you want a specific map background, such as States, to be a certain color, then this can be defined in the configuration file.  You can always change the map background color to something else during the GFE session.  If not specified, the assigned default color for the map background will be the first entry in MapBackgrounds_availColors.

The user may specify a specific color to be used for a map background, rather than getting a random color assigned. Format is mapName_graphicColor = color.  The color does not need to be in the MapBackgrounds_availColors list.

States_graphicColor = 'green'

 

Map Background Line Widths

The default line width of the map background can be specified in the configuration file.  Valid numbers are zero and up. You can always change the line width interactively during a GFE session.  If not specified, then the line width is assumed to be zero.

Default line widths can be set for each map background based on map name. Zero is the default value, which represents thin lines. The larger the number, the wider the line.  The format is mapName_lineWidth. Do not include a decimal point after these entries.

States_lineWidth = 1

 

Map Background Line Patterns

The default line pattern can be varied for each map background.  If not specified, then the line pattern is assumed to be solid.  There are currently four line patterns supported in the GFE.

Default line patterns can be set up for each map background.  The possible strings are "SOLID", "DASHED", "DOTTED", "DASHED_DOTTED".  The values must be enclosed within quotes.   The format is mapName_linePattern.

States_linePattern = "SOLID"

 

Map Label Offsets

MapLabelXOffset and MapLabelYOffset are the number of pixels you wish to move map city labels relative to their "normal" position (Default is (0,0)).

MapLabelXOffset = 0
MapLabelXOffset = 0

 

Map Background Labels

Labels may be placed on any map background.  The choice of labels is limited to the shapefile attributes that are present for the particular map background.  For example, the States map background has the following attributes in its shapefile: STATE, FIPS, LON, NAME, recnum, LAT, FE_ZONE.  The format of specifying a default label attribute for the map background is mapName_labelAttribute = attributeName.

Cities_labelAttribute = "NAME"
 

 

Map Background Font Offset

The font used for a specific map background display is based on three things:
  • The definition of TextFont*, which defines the standard fonts used in the GFE.
  • The optional definition of display type fonts, which defines which of the standard fonts should be used for this particular type of display (e.g., Map_font).
  • The optional font offset, which adds or subtracts an offset size from the calculations derived in the first two steps.
  • The font offset (called magnification on the GFE menus) allows the default font size to be increased or decreased on a per-map basis.  NNumbers can range from -2 through +2. Format is mapName_fontOffset.   Do not include a decimal point after these entries.

    States_fontOffset = 0
     
     



     
       Back To TOC