+ .empty()
+ .append(
+ $("<div class='d-flex'>").append(
+ $("<div class='flex-grow-1 text-break'>").append(
+ $("<h2>")
+ .text(I18n.t("javascripts.directions.directions"))),
+ $("<div>").append(
+ $("<a class='geolink' href='#'>").append(
+ $("<button type='button' class='btn-close mt-1'>")))),
+ distanceText,
+ turnByTurnTable
+ );