Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created October 22, 2018 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/3705471fe71d25c25cb2d0f56f512bd9 to your computer and use it in GitHub Desktop.
Save fitomad/3705471fe71d25c25cb2d0f56f512bd9 to your computer and use it in GitHub Desktop.
function showRoutePlan(routeID, distance, travelTime, steps)
{
...
// INSTRUCCIONES
var stepsDiv = steps.map(function(step) {
var theDiv = "<div><p class=\"routeStep\">" + step.instructions + "</p><p class=\"routeStepDetail\"><small>DISTANCIA: " + formattedDistance(step.distance) + "</small></div>";
return theDiv;
});
element("routePlanContent").innerHTML = stepsDiv;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment