Maptitude GISDK Help |
Moves an annotation to a new location.
MoveAnnotation(string window_spec, integer id, integer delta_x, integer delta_y)
Argument |
Contents |
window_spec |
Window Specification |
id |
Annotation ID |
delta_x |
The shift to be added to the longitude/X position of the annotation |
delta_y |
The shift to be added to the latitude/Y position of the annotation |
Map annotations must be located between -90 and +90 degrees latitude. If a call to MoveAnnotation() causes the annotation to move out of this range, then the annotation is not moved.
For map annotations, delta_x and delta_y are specified in millionths of degrees. For layout window annotations, delta_x and delta_y are specified in hundredths of a point (1/7200ths of an inch).
For a full list of GISDK functions for annotations, see Freehand Items (Annotations).
MoveAnnotation("Layout|U.S. States", 123, 7200, 7200)
Error Type |
Meaning |
NotFound |
The window or the specified annotation does not exist |
Function |
Summary |
Adds an annotation to a map or layout window |
|
Removes an annotation from a map or layout window |
|
Removes annotations from a map or layout window |
|
Creates a copy of an annotation |
|
Returns the definition of an annotation |
|
Return the IDs of all annotations in a map or layout window |
|
Modifies an existing annotation in a map or layout window |
©2025 Caliper Corporation | www.caliper.com |