A floating marker is called a buoy. This directs the places where the boats are tied up, presence of submerged dangers, etc.