MapAnnotation Add
Adds annotations to the 2D Graphics window
Syntax
MapAnnotation <ScenarioPath> Add <AnnotNum> {AnnotType} [<Parameters>]
Related commands
Description
The MapAnnotation Add command can be used to add annotations to be displayed in the 2D Graphics window by specifying the {AnnotType} and associated parameters.
To add an annotation, the <AnnotNum> must be a unique integer. If a duplicate <AnnotNum> is used the command will fail.
Once an annotation is added it can be changed using the MapAnnotation Modify command, or deleted using the MapAnnotation Delete command.
{AnnotType} | {Option} | <Parameters> |
---|---|---|
Text | String | "<TextString>" |
Coord | {LatLon | Screen | PixelRelative | Pixel} | |
Position | <XPos> <YPos> | |
Color | {Color} | |
HorizPixelOrigin | {Left | Right} | |
VertPixelOrigin | {Top | Bottom} | |
HorizJustify | {Left | Center | Right} | |
VertJustify | {Top | Center | Bottom} | |
FontStyle | {1 | 2 | 3}
The number indicates the size of the font: enter 1 for small, 2 for medium and 3 for large. | |
WindowID | <WinNumber> | |
Marker | Style | <MarkerNum> |
Coord | {LatLon | Screen | PixelRelative | Pixel} | |
Position | <XPos> <YPos> | |
Color | {Color} | |
HorizPixelOrigin | {Left | Right} | |
VertPixelOrigin | {Top | Bottom} | |
Scale | <ScaleVal>
This is a value greater or equal to 1.0. | |
Rotation | <RotationVal>
Enter a value between 0.0 and 360.0, indicating the number of degrees of rotation. | |
WindowID | <WinNumber> | |
Line | Coord | {LatLon | Screen | PixelRelative | Pixel} |
Position | <NumPts> <XPos1> <YPos1> <XPos2> <YPos2>... | |
Color | {Color} | |
HorizPixelOrigin | {Left | Right} | |
VertPixelOrigin | {Top | Bottom} | |
Width | <Width>
Enter a width value between 1.0 and 10.0 | |
Style | {LineStyle}.
Enter a name such as Solid, Dashed, Dotted, etc, or a number 0, 1, 2, etc. For all valid {LineStyle} options see Common Options. | |
Smooth | {Yes | No} | |
WindowID | <WinNumber> | |
Polygon | Coord | {LatLon | Screen | PixelRelative | Pixel} |
Position | <NumPts> <XPos1> <YPos1> <XPos2> <YPos2>... | |
Center | <XPos> <YPos> | |
Color | {Color} | |
HorizPixelOrigin | {Left | Right} | |
VertPixelOrigin | {Top | Bottom} | |
LineWidth | <Width>
Enter a width value between 1.0 and 10.0 | |
LineStyle | {LineStyle}
Enter a name such as Solid, Dashed, Dotted, etc, or a number 0, 1, 2, etc. For all valid {LineStyle} options see Common Options. | |
Smooth | {Yes | No} | |
Fill | {Yes | No} | |
FillTranslucency | <Value>
Set the percent translucency of the fill. <Value> can be between 0.0 and 100.0 | |
FillStyle | <FillStyleNum>
Enter an integer between 0 and 7 as follows:
| |
WindowID | <WinNumber> |
For valid {Color} options see Common Options.
If Coord is LatLon the Position values are interpreted as <Lon> <Lat> and are entered in degrees (see Examples below). For all other Coord options the Position values are <XPos> <YPos>.
The options HorizPixelOrigin and VertPixelOrigin only affect annotations with Coord set to ScreenRelative or Pixel. The option Smooth is only valid if Coord is set to LatLon.
Examples
Add the phrase "Red Text" positioned at 20 degrees Lat and 10 degrees Lon in the 2D Graphics window in red:
Add the text string "Blue Text" in blue at an X,Y position of 10,50:
Add a yellow circle marker at 70 degrees Lat (XPos) and 100 degrees Lon (YPos):
Add a green square marker at pixel position of 10, 50 from the lower right corner of the screen:
Add a white great-arc line from lat, lon 10,5 to 30,0:
Add a filled cyan great-arc polygon from lat,lon 0,-40 to -80,-60 to 20,-160:
Return message
Group membership
This command belongs to the following group(s):
Version
10