In this jsfiddle is simplified version of my js: http://jsfiddle.net/Drecker/2m4kvxb8/4/ Note that interesting part of the jsfiddle is only showRoute
method. And method showMarker
only shows desired behavior on normal marker.
Basically I generate a route via gmap3
getroute
with some waypoints. After clicking on a waypoint I need to open a small infobox with more custom information of that point - so basically somehow get onclick event of such waypoint (with some identification of that waypoint so I would be able to get proper information). I'm able to achieve desired behavior on a separate marker (as you can see in the jsfiddle - that's the fully functional separate marker on the top left), but not on the markers generated by directionrenderer
.
Furthermore please note that my waypoints have stopover: false
and such markers for some reason ignore (some) options like title
, as you can see in jsfiddle.
Any help is very appreciated - I've tried several things none of them works.