Skip to content

Commit

Permalink
Merge pull request #1 from efranqueiro/master
Browse files Browse the repository at this point in the history
The Waypoint constructor as-id doesn't work with newer versions of Leaflet
  • Loading branch information
mrohnstock authored Feb 7, 2018
2 parents 3caace2 + a191b3f commit eec179f
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 eec179f

Please sign in to comment.