Add MgLayer.