A moderately powerful magnitude 5.1 earthquake hit near the Sunshine Coast of B.C., and it was felt across Metro Vancouver.