-
-
Save fitomad/3705471fe71d25c25cb2d0f56f512bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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