I’m looking to change the marker icons when using the DirectionsRender within a google map. I’ve figured out from here how to change both the markers to the same icon, but I am looking for custom icons on both the start and end points. Any ideas?
Edit: I’m looking for how to assign separate icons to the start and end markers. I know how to change it for both, but having different marker icons is proving difficult.
For those that need an example like I did, here’s a basic one:
The response from a route request returns a leg(s) depending on the number of stops on your route. I am only doing a A to B route, so just take the first leg, and get the position of where the markers need to go, and create markers for those spots.