const instrPrefix = "javascripts.directions.instructions.";
let template = instrPrefix + INSTRUCTION_TEMPLATE[maneuver_id];
- const step_geometry = L.PolylineUtil.decode(step.geometry, { precision: 5 }).map(L.latLng);
+ const step_geometry = L.PolylineUtil.decode(step.geometry, { precision: 5 });
let instText;
const destinations = "<b>" + step.destinations + "</b>";
const steps = leg.maneuvers.map(manoeuvre => {
const lineseg = line
- .slice(manoeuvre.begin_shape_index, manoeuvre.end_shape_index + 1)
- .map(([lat, lng]) => ({ lat, lng }));
+ .slice(manoeuvre.begin_shape_index, manoeuvre.end_shape_index + 1);
return [
lineseg[0],
INSTR_MAP[manoeuvre.type],
const steps = path.instructions.map(function (instr) {
const lineseg = line
- .slice(instr.interval[0], instr.interval[1] + 1)
- .map(([lat, lng]) => ({ lat, lng }));
+ .slice(instr.interval[0], instr.interval[1] + 1);
return [
lineseg[0],
GH_INSTR_MAP[instr.sign],