In the Google Maps API v3, how can I get the waypoint markers from the DirectionsRenderer in order to add click events to them (such as a delete menu).
In the Google Earth sidebar menu, under Places panel, click the plus sign to open the Places folder. In the Temporary Places menu look for Garmin GPS device and Waypoints to see the imported waypoints. The waypoints are imported as Placemarks in Google Earth.
Open the Google Maps app. Search for an address or scroll around the map until you find the ideal pin location. To drop the pin, long-press on the screen in the desired location. The address or coordinates will pop up at the bottom of the screen.
Jens Rasmussen, one of the inventors of Google Maps, a Danish computer programmer is credited with the creation of what is officially known as the map pin or pushpin .
Until a better solution can be found here is the work around that I have employed. The basic idea is to put your own marker on top of the waypoints and bind a click event listener to your marker. I have made a jsfiddle demonstrating the idea.
It definitely isn't perfect, but with a custom icon instead of the default marker it could look sort of natural.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With