GPVPrintTemplateContent - AppGeo/GPV GitHub Wiki

The GPVPrintTemplateContent table defines the graphical elements that can be placed on printable maps. All coordinates are based on a lower-left page origin. Please note that three different units of measure are used here: inches, points and pixels. Be sure to specify values in the correct units for each column.

Columns

  • TemplateID - The ID of the printable map template (not null). Links to GPVPrintTemplate.
  • SequenceNo - A number specifying the drawing order of this printable map element (not null). Elements can draw on top of one another.
  • ContentType - One of the following which defines the type of element to draw (not null):
    • box - Draws a box with an outline or fill. All other types that follow are simply variations of box. During printable map configuration, you can set all elements to this type for initial layout, then change them to their specific types later.
    • date - Draws today's date as text.
    • image - Draws the image specified in the FileName column.
    • input - Draws the text that the user specifies in a text box on the Create Printable Map interface. Use DisplayName below to label the text box. Note that this replaces the title type from previous versions.
    • legend - Draws the legend for the current map.
    • map - Draws the current map.
    • overviewmap - Draws the current overview map from the Location tab.
    • scale - Draws the current map scale as an engineering scale (e.g. 1" = 1000 ft).
    • scalefeet - Draws the current map scale as the number of feet per inch (e.g. 1000 ft).
    • text - Draws the text specified in the Text column or from the file specified in the FileName column.
  • DisplayName - The label to show next to the text box on the Create Printable Map interface when ContentType is input.
  • OriginX - The X-coordinate of the origin of this element in inches (not null).
  • OriginY - The Y-coordinate of the origin of this element in inches (not null).
  • Width - The width of this element in inches (not null). Note that text may not completely fill this width.
  • Height - The height of this element in inches (not null). Note that text may not completely fill this height.
  • FillColor - The color for filling the interior of this element's box. If null, the box is not filled.
  • OutlineColor - The color of the outline of this element's box. If this or OutlineWidth is null, the outline is not drawn.
  • OutlineWidth - The width of the outline of this element's box in pixels. If this or OutlineColor is null, the outline is not drawn.
  • LegendColumnWidth - The width of a column in the legend in inches when ContentType is legend. Text in the legend will be truncated to this width. If null, defaults to a calculated width based on the FontSize.
  • Text - The text to draw when ContentType is text.
  • TextAlign - The horizontal alignment of the text relative to the box when ContentType is date, scale, text or title. Valid values are left, center and right. If null, defaults to center.
  • TextWrap - Specifies whether to wrap text in the box, 1 for yes and 0 for no, when ContentType is date, scale, text or title. If null, defaults to 0 (no). When wrapping is off, the text draws at the bottom of the box and will extend outside of the box if it is too long. When wrapping is on, the text starts drawing at the top of the box, wraps lines of text down the box, and cuts off excess text if it's too long.
  • FontFamily - The name of the font for drawing text when ContentType is date, scale, text or title. Valid values are Courier, Helvetica and Times Roman. If null, defaults to Helvetica.
  • FontSize - The size of the text in points when ContentType is date, scale, text or title. If null, defaults to 12 points.
  • FontBold - Specifies whether to display text in bold, 1 for yes and 0 for no, when ContentType is date, scale, text or title. If null, defaults to 0 (no).
  • FileName - The name of a file containing content for this element depending on ContentType as follows:
  • image - An image file found in the Images/Print directory of the GPV website.
  • text - When Text is null, a text file found in the Text/Print directory of the GPV website.
  • Active - Specifies whether this element should be available for use, 1 for yes and 0 for no. If null, defaults to 0 (no).

Sample Code