Need directions menu option from the marker on the Map <p>I am pretty new to Google Map APIs and it would be great if someone can help me to resolve the issue.</p> <p>I want to display a point on the map, from which user can find directions to any other place on the map.</p> <p>Creating a point/marker on the map has been pretty straightforward and it is working fine. However, I am not able to get right option to enable "directions" option from the marker.</p> <p>Hope someone can guide me on how to achieve this.</p> <p>Here is my code:</p> <hr> <pre><code> function loadScript() { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'https://maps.googleapis.com/maps/api/js?key=AI..............&amp;v=3.exp&amp;' + 'callback=showMap'; document.body.appendChild(script); } function showMap() { var mapOptions = { center: new google.maps.LatLng(&lt;?php echo $prop-&gt;gps_lat ?&gt;, &lt;?php echo $prop-&gt;gps_lng ?&gt;), zoom: 12 }; var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); var myLatlng = new google.maps.LatLng(&lt;?php echo $prop-&gt;gps_lat ?&gt;, &lt;?php echo $prop-&gt;gps_lng ?&gt;); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: 'Property location' }); } </code></pre>