API C Map.GetMapChildrenInfo

Returns information on the sub-maps of the given UI map, optionally restricted to a specific "map type", and/or recursive. info = C_Map.GetMapChildrenInfo(uiMapID [, mapType, allDescendants])

Arguments

 * uiMapID : number - UiMapID
 * mapType : Enum.UIMapType ? - Filters results by a specific map type.
 * allDescendants : boolean ? - Whether to recurse on each child or not.

Returns

 * info : UiMapDetails []

Example
/dump C_Map.GetMapChildrenInfo(946)
 * Children of the "Cosmic" uiMapID (not to be confused with the UIMapType).

{ 	{mapType=2, mapID=101, name="Outland", parentMapID=946}, {mapType=2, mapID=572, name="Draenor", parentMapID=946}, {mapType=1, mapID=947, name="Azeroth", parentMapID=946} }

/dump C_Map.GetMapChildrenInfo(946, 2)
 * Children of the "Cosmic" uiMapID with mapType==2

{ 	{mapType=2, mapID=101, name="Outland", parentMapID=946}, {mapType=2, mapID=572, name="Draenor", parentMapID=946} }