Ultracold atomic condensates loaded in a two-dimensional optical lattice with the magnetic fields. Four types of supersolid phases in the presence of the uniform magnetic flux. Two types of supersolid phases in the presence of the staggered magnetic flux.