Skip to content

Commit

Permalink
The Waypoint constructor as-id doesn't work with newer versions of Le…
Browse files Browse the repository at this point in the history
…aflet
  • Loading branch information
efranqueiro committed Feb 6, 2018
1 parent 3caace2 commit a191b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/L.Routing.TomTom.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
idx;

wpIndices.push(0);
wps.push(new L.Routing.Waypoint(coordinates[0], waypoints[0].name));
wps.push({ latLng: coordinates[0], name: waypoints[0].name });

for (i = 0; i < instructions.length; i++) {
if (instructions[i].type === "WaypointReached") {
Expand Down

0 comments on commit a191b3f

Please sign in to comment.