RedrawMap()

Summary

Redraws a map window.

Syntax

RedrawMap(string map_name)

Argument Contents
map_name The name of the map, or null for the current map
Option Type Contents
Redraw All Boolean "True" means redraw all layers completely, "False" means to only redraw layers that have changed.
Update Boolean "True"means show incremental drawing (every few seconds), "False"means only show the fully drawn map once in-memory drawing is complete.

Notes

  • Most functions that change the scale or display settings for a map do not redraw the map after the change. The map is redrawn automatically when:

    • The window is resized by the user, or

    • A portion of the map, obscured by another window or dialog box, is uncovered.

  • Use RedrawMap() to make sure a map redraws when you want.

Example

SetScale(GetScale() * 2.0) // Change the scale of a map...
RedrawMap() // Redraw it at the new scale

Error Codes

Error Type Meaning
NotFound There is no map with the specified name, or map_name is null and there is no map window

See Also

Function Summary
SetMapRedraw() Controls whether maps redraw automatically