Several factors are considered to determine whether a taking has occurred, including whether the regulation has destroyed all economically viable use of the property, if it unreasonably interferes with the use and enjoyment of the property, the character of the regulatory action and whether the regulation substantially advances legitimate state interests.