constructor
XML-string for the current marker
FieldID H - A text modifier for units, equipment, and installations; content is implementation specific.
FieldID H - A text modifier for units, equipment, and installations; content is implementation specific. 20 Characters
MIL-STD-2525D lets you choose between MEDAL and alternate MEDAL icons for mine warefare symbols, the default in milsymbol is using MEDAL icons, but you can change this using setting this property to true.
FieldID X - A text modifier for units, equipment, and installations, that displays either altitude flight level, depth for submerged objects; or height of equipment or structures on the ground.
FieldID X - A text modifier for units, equipment, and installations, that displays either altitude flight level, depth for submerged objects; or height of equipment or structures on the ground. 14 Characters
Draws the marker to a canvas element using native draw instructions and returns the canvas element.
Parses the XML and returns a DOM element.
This will return the SVG XML string and it will also be stored in the XML property, if autoSVG is set to true the will be called automatically when you call getMarker.
Contains the bounding box of the current marker
2525C specifics purple as an optional color for civilian symbols.
2525C specifics purple as an optional color for civilian symbols. Of corse we like color so we set this as default.
This is the option for setting what Color object to use for the fill of the symbols.
This is the option for setting what Color object to use for the fill of the symbols. You can use MS.colorMode to create a new color mode, or MS.getColorMode to get an existing color mode.
Contains the colors for the current marker
FieldID K - A text modifier for units and installations that indicates unit effectiveness or installation capability.
FieldID K - A text modifier for units and installations that indicates unit effectiveness or installation capability. 5 Characters
FieldID AF - Example: "Hawk" for Hawk SAM system.
FieldID Q - at the moment all directions should be in degrees and not in mils.
FieldID Q - at the moment all directions should be in degrees and not in mils. Set to an empty string to remove the direction arrow.
FieldID W - A text modifier for units, equipment, and installations that displays DTG format: DDHHMMSSZMONYYYY or "O/O" for on order.
FieldID W - A text modifier for units, equipment, and installations that displays DTG format: DDHHMMSSZMONYYYY or "O/O" for on order. 16 Characters
FieldID AE - Equipment teardown time in minutes.
FieldID J - A text modifier for units, equipment, and installations that consists of a one-letter reliability rating and a one-number credibility rating.
FieldID J - A text modifier for units, equipment, and installations that consists of a one-letter reliability rating and a one-number credibility rating. 2 Characters
Should your symbol be filled with color.
The opacity of the symbol fill color.
Should your symbol have a frame.
Should your symbol have a frame. All symbols support to be unframed, not just the ones specified in 2525B.
returns an object with the x and y offset of the symbol.
This will return an object with several named properties, where each property is a Color object.
This will return an object with several named properties, where each property is a Color object. This represent all colors that can be used for the current marker.
When the getMarker() method is called, all properties of the Symbol Object is updated (getMarker() calls getProperties() and getColors()) and a marker is composed by all marker parts.
When the getMarker() method is called, all properties of the Symbol Object is updated (getMarker() calls getProperties() and getColors()) and a marker is composed by all marker parts. When this is done the Symbol Object itself is returned.
Note: not needed anymore, symbols are automatically updated when options are updated using setOptions().
returns an object with the x and y offset of the octagon center.
This will update and return the Properties Object for the current marker.
returns an object with the width and height of the symbol.
Example: Tactical Operations Centre put as 'TOC'.
Height of the current marker
FieldID M - A text modifier for units that indicates number or title of higher echelon command (corps are designated by Roman numerals).
FieldID M - A text modifier for units that indicates number or title of higher echelon command (corps are designated by Roman numerals). 21 Characters
FieldID N - A text modifier for equipment; letters "ENY" denote hostile symbols.
FieldID N - A text modifier for equipment; letters "ENY" denote hostile symbols. 3 Characters
Should your symbol have an icon.
FieldID P - A text modifier displaying IFF/SIF Identification modes and codes.
FieldID P - A text modifier displaying IFF/SIF Identification modes and codes. 5 Characters
If you have set some text fields and direction but don't want them to be displayed you can set infoFields to false.
If you have set some text fields and direction but don't want them to be displayed you can set infoFields to false. This makes it possible to initiate the object with all information you got but not display it.
The size of the text fields surrounding the symbol.
FieldID Y - A text modifier for units, equipment, and installations that displays a symbol's location in degrees, minutes, and seconds (or in UTM or other applicable display format).
FieldID Y - A text modifier for units, equipment, and installations that displays a symbol's location in degrees, minutes, and seconds (or in UTM or other applicable display format). 19 Characters
The anchor point for the current marker, this is usually the center of the octagon, but for headquarters it's the end of the staf.
The anchor point for the current marker, this is usually the center of the octagon, but for headquarters it's the end of the staf. The coordinates are measured from the top left corner of the marker.
A color that is either a keyword or a numerical RGB specification.
A color that is either a keyword or a numerical RGB specification. If you set this the symbol will be monochrome and unfilled using the color provided.
The anchor point for the octagon for the current marker.
The anchor point for the octagon for the current marker. The coordinates are measured from the top left corner of the marker.
FieldID AD - "ELNOT" or "CENOT"
Properties of the current marker
FieldID C - A text modifier in an equipment symbol that identifies the number of items present.
FieldID C - A text modifier in an equipment symbol that identifies the number of items present. 9 Characters
FieldID F - A text modifier in a unit symbol that displays (+) for reinforced, (-) for reduced, (±) reinforced and reduced.
FieldID F - A text modifier in a unit symbol that displays (+) for reinforced, (-) for reduced, (±) reinforced and reduced. 3 Characters
If you want to change the options of an existing symbol at the same time as you want to request it as a new marker, you can use setOptions(<Symbol options> options?) to update the options.
FieldID R2 - M = Mobile, S = Static, or U = Uncertain.
FieldID L - A text modifier for hostile equipment; "!" indicates detectable electronic signatures.
FieldID L - A text modifier for hostile equipment; "!" indicates detectable electronic signatures. 1 Characters
The L value for your symbol, where the L value is the width of the icon octagon.
FieldID AA - A text modifier for units; indicator is contained inside the frame; contains the name of the special C2 Headquarters.
FieldID AA - A text modifier for units; indicator is contained inside the frame; contains the name of the special C2 Headquarters. 9 Characters
FieldID Z - A text modifier for units and equipment that displays velocity as set forth in MIL-STD-6040.
FieldID Z - A text modifier for units and equipment that displays velocity as set forth in MIL-STD-6040. 8 Characters
FieldID G - A text modifier for units, equipment and installations; content is implementation specific.
FieldID G - A text modifier for units, equipment and installations; content is implementation specific. 20 Characters
The stroke width of the symbol.
Base 64 encodes the XML and returns the output as a SVG image stream that can be set as the source attribute on a image element.
FieldID V - A text modifier for equipment that indicates types of equipment.
FieldID V - A text modifier for equipment that indicates types of equipment. 24 Characters
FieldID T - A text modifier for units, equipment, and installations that uniquely identifies a particular symbol or track number.
FieldID T - A text modifier for units, equipment, and installations that uniquely identifies a particular symbol or track number. Identifies acquisitions number when used with SIGINT symbology. 21 Characters
Width of the current marker
Symbol object with a SIDC, and optional symbol options The SIDC is a complete, letter based or number based, or at least the first 3 chars of a letter based SIDC.