DrawMapAnnotations()

Summary

Redraws the annotations in a map window.

Syntax

DrawMapAnnotations(string window_spec)

Argument Contents
window_spec The window type and name, or null for the current map

Notes

  • DrawMapAnnotations() is useful to refresh a map without drawing all the map features one by one.

  • DrawMapAnnotations() draws a clean bitmap showing all the layers, and then draws annotations on top of the clean map.

  • For a full list of GISDK functions for annotations, see Freehand Items (Annotations).

Example

DrawMapAnnotations("Map|My First Map")
DrawMapAnnotations()

Error Codes

Error Type Meaning
Error The window_spec is invalid
NotFound There is no map window of the given name

See Also

Function Summary
RedrawMap() Redraws a map window
AddAnnotation() Adds an annotation to a map or layout window