Skip to content

Commit

Permalink
V 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Daredzik committed Sep 2, 2019
1 parent 46871e2 commit efee4d9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
9 changes: 2 additions & 7 deletions dist/lrm-here.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,6 @@ if (typeof module !== 'undefined' && module.exports) {
});
}, this.options.timeout);

// Create a copy of the waypoints, since they
// might otherwise be asynchronously modified while
// the request is being processed.
for (i = 0; i < waypoints.length; i++) {
wp = waypoints[i];
wps.push({
Expand Down Expand Up @@ -358,11 +355,9 @@ if (typeof module !== 'undefined' && module.exports) {
text: instruction.instruction,//text,
distance: instruction.length,
time: instruction.travelTime,
index: closestIndex
/*
index: closestIndex,
type: instruction.action,
road: instruction.roadName,
*/
road: instruction.roadName
};
},

Expand Down
2 changes: 1 addition & 1 deletion dist/lrm-here.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "leaflet-routing-machine-here",
"version": "1.0.3",
"version": "1.0.4",
"description": "Support for here in Leaflet Routing Machine",
"main": "dist/lrm-here.js",
"scripts": {
Expand Down
9 changes: 2 additions & 7 deletions src/L.Routing.Here.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
});
}, this.options.timeout);

// Create a copy of the waypoints, since they
// might otherwise be asynchronously modified while
// the request is being processed.
for (i = 0; i < waypoints.length; i++) {
wp = waypoints[i];
wps.push({
Expand Down Expand Up @@ -197,11 +194,9 @@
text: instruction.instruction,//text,
distance: instruction.length,
time: instruction.travelTime,
index: closestIndex
/*
index: closestIndex,
type: instruction.action,
road: instruction.roadName,
*/
road: instruction.roadName
};
},

Expand Down

0 comments on commit efee4d9

Please sign in to comment.