Quantum phases for bosons in a magnetic lattice with a harmonic trap