I have a map in an Android app with several markers. When I click on any of the markers, an information window appears, as well as a direction button in the lower right corner, as shown in the figure below.

The problem is that I also open the info window programmatically based on user inputs in the application. I do this with marker.showInfoWindow (), but this way it does not display the directions button. I googled around and did not find anyone with a similar problem, hoped there was a way for the button to appear, and if so, how?
source share