When by ordinance a city declares that any right of way to a body of navigable water in the city over, upon, or along the frontage of city tidelands is required for any public purpose, a person claiming or possessing such frontage or tidelands shall not: