A tsunami warning's been issued following a massive earthquake off Costa Rica's Pacific coast.

It measured 7-point-9 and witnesses say buildings rattled and power was cut in the capital San Jose.