Grid draw object

From Maria GDK Wiki
Revision as of 14:12, 19 August 2025 by Sse (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Grid draw object.png

The grid draw object has 3 display modes: * UTM displaying an UTM grid, MGRS displaying the related cell oriented MGRS grid, and * Standard not related to any specific coordinate system, but allowing a more arbitrary cell size setting. The grids are intended for minor or moderate size areas only.

This page lists all the fields that control the grid draw object's appearance and behavior. The rightmost column (if present) indicates which grid type for which the corresponding style is available.

Field Value Description Grid type
AreCoordinatesVisible true, false Show or hide UTM coordinates. UTM, MGRS
BorderOutlineFontColor R,G,B,A Font outline color for grid borders
CellOutlineFontColor R,G,B,A Font outline color for grid cells
CoordinatesFontColor R,G,B,A Font color for coordinates MGRS, UTM
CoordinatesFontSize Double value greater than 0 Font size for coordinates MGRS, UTM
CoordinatesOutlineFontColor R,G,B,A Font outline color for coordinates MGRS, UTM
GridBorderColor R,G,B,A Color of the border around the grid.
GridReferenceFontSize Double value greater than 0 Cell label font size.
GridReferenceFontColor R,G,B,A Cell label font color.
GridCellBackgroundPattern Pipe separated list of cell:pattern tuples where patterns are defined in the GDK enum FillStyle 3F:solid. Standard
GridCellBackgroundColor Pipe separated list of cell:R,G,B,A tuples 3F:255,0,255,180. Standard
GridCellCustomLabel Pipe separated list of cell:text tuples 4D:Test. Standard
GridHorizontalRulerFontSize Double value greater than 0 Font size of labels on horizontal axis. (not coordinates)
GridHorizontalRulerFontColor R,G,B,A Font color of labels on horizontal axis. (not coordinates)
GridLabelAxis Comma separated list of Top, Left, Right, Bottom List of which axes to show labels.
GridMaxNumberOfLines Integer > 1 Maximum number of grid lines. See also NoGridSizeAdjustment UTM, MGRS
GridSize Integer Grid cell size in meters. For MGRS and UTM grids, values are limited to the set {10000, 1000, 100, 10}. For Standard grids, cell size is arbitrary.
GridType UTM, MGRS or Standard Grid display mode.
GridVerticalRulerFontSize Double value greater than 0 Font size of labels on vertical axis. (not coordinates)
GridVerticalRulerFontColor R,G,B,A Font color of labels on vertical axis. (not coordinates)
IsCellLabelsVisible true/false Show cell labels
HorizontalLabelSkipList Comma separated list of labels to skip List of labels to skip on the horizontal axis.
HorizontalStartLabel Axis label Label to start with on the horizontal axis.
IsCellLabelsVisible true, false Show or hide cell labels.
NoGridSizeAdjustment false, true If true, no auto adjustment of cell size will be attempted MGRS, UTM
NumberPadReference Comma separated list of cell references List of cell references where number pads should be displayed.
ReverseCellLabel true, false Reverse the axis order of the cell labels. Example 2A <-> A2. Standard
ShowGridBorder true, false Show or hide border around the grid.
UnwantedLetters Comma separated list of letters. Letters unwanted in axis or cell labels.
VerticalLabelSkipList Comma separated list of labels to skip List of labels to skip on the vertical axis.
VerticalStartLabel Axis label Label to start with on the vertical axis.