Text modifiers are standard-defined fields that appear around the symbol frame as labels. They carry critical operational information — unit identity, location, time, status, and more — and their positions relative to the symbol are specified by MIL-STD-2525 and STANAG APP-6. milsymbol renders all text modifiers automatically once you set them as options; the library handles placement, sizing, and bounding-box expansion so the symbol canvas always has room for all the text that has been supplied.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/spatialillusions/milsymbol/llms.txt
Use this file to discover all available pages before exploring further.
Field Codes and Character Limits
Each text modifier corresponds to a named field in the standard documents. The field codes are referenced in the option descriptions to help cross-reference with the original standard. Character limits are enforced by the standard documents — exceeding them may truncate display or violate interoperability requirements.| Field Code | Option | Max Characters |
|---|---|---|
| Field T | uniqueDesignation | 21 |
| Field M | higherFormation | 21 |
| Field C / R | quantity | 9 |
| Field W | dtg | 16 |
| Field Y | location | 19 |
| Field G | staffComments | 20 |
| Field H | additionalInformation | 20 |
| Field V | type | 24 |
| Field Z | speed | 8 |
| Field X | altitudeDepth | 14 |
| Field K | combatEffectiveness | 5 |
| Field F | reinforcedReduced | 3 |
| Field J | evaluationRating | 2 |
| Field N | hostile | 3 |
| Field P | iffSif | 5 |
| Field AA | specialHeadquarters | 9 |
| Field AF | commonIdentifier | — |
| Field AC | country | — |
| Field Q | direction | — (degrees) |
Common Text Modifiers
uniqueDesignation — Field T
The unique designation is the most frequently used modifier. It identifies a specific unit, track, or piece of equipment. For ground units it appears to the lower-left of the symbol frame.higherFormation — Field M
Displays the parent unit or command. Corps are designated by Roman numerals per doctrine.quantity — Field C / R
For equipment symbols, indicates the number of items present. Appears above the symbol frame.reinforcedReduced — Field F
Standard shorthand for unit strength:(+) reinforced, (-) reduced, (±) both.
dtg — Field W
Date-time group in the formatDDHHMMSSZMONYYYY, or "O/O" for on-order.
location — Field Y
Displays the symbol’s geographic location in degrees/minutes/seconds, UTM, or another applicable format.staffComments — Field G
Free-text staff comments; content is implementation-specific.additionalInformation — Field H
Additional free-text information; content is implementation-specific.type — Field V
Indicates the type of equipment.speed — Field Z
Velocity as set forth in MIL-STD-6040.altitudeDepth — Field X
Altitude flight level, submerged depth, or structure height.combatEffectiveness — Field K
Indicates unit effectiveness (up to 5 characters).Full Example — Rich Symbol with Many Text Fields
Controlling Text Field Display
infoFields — Toggle rendering
Setting infoFields: false prevents all text modifiers and the direction indicator from being rendered, while keeping the data stored on the symbol. This is useful when you want to build a symbol with all available operational data but render it compactly on a map at small scale, or toggle label visibility interactively.
infoSize — Control text scale
The infoSize option controls the size of text modifier labels relative to the symbol size. The value is a percentage-like number: 40 means 40% of the default size of 100. Increase it for larger labels, decrease it for more compact output.
Use
infoColor to set the color of text modifier fields, and infoBackground / infoBackgroundFrame to add colored backgrounds behind the label groups for improved legibility. See the Style Options guide for details.Movement Indicators
direction — Direction of movement arrow
Set direction to a bearing in degrees (0 = north, 90 = east, 180 = south, 270 = west) to render a movement indicator arrow. Set it to undefined to remove the arrow.
speedLeader — Speed leader line
When both direction and speedLeader are set, milsymbol draws a speed leader line instead of a movement arrow. The speedLeader value is the length of the line in pixels, independent of the symbol size.
Engagement Bar
The engagement bar appears above the symbol and displays information about a track’s engagement status. UseengagementBar for the text content and engagementType for the color-coded bar type.
engagementType:
| Value | Bar Color |
|---|---|
"TARGET" | Red (rgb(255, 0, 0)) |
"NON-TARGET" | White (rgb(255, 255, 255)) |
"EXPIRED" | Orange (rgb(255, 120, 0)) |
SIGINT Modifiers
SIGINT symbols carry additional specialized modifiers that indicate signal intelligence information.sigint — Mobile/Static/Uncertain
platformType — ELNOT or CENOT
signatureEquipment — Electronic signature indicator
A single "!" character indicates detectable electronic signatures on hostile equipment.
