Instantly share code, notes, and snippets.

Embed
What would you like to do?
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