For info, C_Map.GetCurrentMapID() has been removed in the latest build. Instead you should use WorldMapFrame:GetMapID() to get the ID of the map currently displayed inside the frame. Note that this will return nil if the map has not been opened yet (and not the current map ID).
|