'New' Google maps is a classic example of fixing something that wasn't broken. I avoid the new version. It's really irritating. Give
Map Bike Rides with Elevation Profiles, Analyze Cycling Performance, Train Better. Ride With GPS a try. i think it automatically does what you're asking.