I have the following method for creating Marker in App:
private void createMarker()
{
MarkerOptions mo = new MarkerOptions();
LatLng latLng = new LatLng(mObjetoResumo.getLatitude(), mObjetoResumo.getLongitude());
mo.position(latLng);
mo.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE));
final Marker m = mMap.addMarker(mo);
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, Constants.MAX_ZOOM));
m.showInfoWindow();
}
As I call showInfoWindow
the Pin information is displayed without problems, my question and how do I get the route button to appear automatically?
This appears only after the user clicks on Marker
.
Would you like to know how to display these buttons without the need for another user click?