Move the distance calculations to the view( html )
Check the distance to the earth when the camera moves, needs to call to switch the camera and change the line distance
Delete all polylines and billboards created from the toolbar on Reset