问题 I'm trying to add a label for each waypoint along the route, but I'm not quite sure how I should approach it. After doing some research, I understand that you can add a custom pin with label, but that's when I drop each pin manually. How can I do this for direction? 回答1: If you want to get access to markers from DirectionsRenderer request that need a hack because there is not official way to do this from google map api. There is a way around, here is an example I made: https://jsfiddle.net