GetMaps()

Summary

Get a list of maps and the name of the current map.

Syntax

maps_info = GetMaps()

Returns

An array of three elements:

Element Type Contents
1 Array An array of the names of all open maps (strings)
2 Integer The index of the current map in the list of names
3 String The name of the current map

Notes

  • If there are no maps, GetMaps() returns null.

Example

maps_info = GetMaps()
if maps_info[2] > 0 then
ShowMessage("The name of the current map is " + maps_info[3])

See Also

Function Summary
GetMapNames() Gets a list of the names of maps in the system
GetMap() Get the name of the current map