function addManueversToPanel(route) {
		var nodeOL = document.createElement('ol');

		nodeOL.style.fontSize = 'small';
		nodeOL.style.marginLeft = '5%';
		nodeOL.style.marginRight = '5%';
		nodeOL.className = 'directions';

		route.sections.forEach((section) => {
			section.actions.forEach((action, idx) => {
				var li = document.createElement('li'),
					spanInstruction = document.createElement('span');

				spanInstruction.innerHTML = section.actions[idx].instruction;
				li.appendChild(spanInstruction);

				nodeOL.appendChild(li);
			});
		});

		$('#outputDirections').append(nodeOL);
	}
// Function to add the manuevers to the directions panel
Function to add the manuevers to the directions panel
Function to add the manuevers to the directions panel
function addManueversToPanel(route) {
		var nodeOL = document.createElement('ol');
		nodeOL.style.fontSize = 'small';
		nodeOL.style.marginLeft = '5%';
		nodeOL.style.marginRight = '5%';
		nodeOL.className = 'directions';
		route.sections.forEach((section) => {
			section.actions.forEach((action, idx) => {
				var li = document.createElement('li'),
					spanInstruction = document.createElement('span');
				spanInstruction.innerHTML = section.actions[idx].instruction;
				li.appendChild(spanInstruction);
				nodeOL.appendChild(li);
			});
		});
		$('#outputDirections').append(nodeOL);
	}
function addManueversToPanel ( route ) { var nodeOL = document . createElement ( 'ol' ) ; nodeOL . style . fontSize = 'small' ; nodeOL . style . marginLeft = '5%' ; nodeOL . style . marginRight = '5%' ; nodeOL . className = 'directions' ; route . sections . forEach ( ( section ) => { section . actions . forEach ( ( action , idx ) => { var li = document . createElement ( 'li' ) , spanInstruction = document . createElement ( 'span' ) ; spanInstruction . innerHTML = section . actions [ idx ] . instruction ; li . appendChild ( spanInstruction ) ; nodeOL . appendChild ( li ) ; } ) ; } ) ; $ ( '#outputDirections' ) . append ( nodeOL ) ; }
Function to add the manuevers to the directions panel
Function to add the manuevers to the directions panel